- Timestamp:
- Sep 30, 2006, 5:15:09 PM (18 years ago)
- Location:
- server
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
server/common/oursrc/sqladm/signup-sql.c
r1 r3 30 30 } 31 31 32 #define NUMBUF 5 33 #define BUFLEN 128 34 char buf[NUMBUF][BUFLEN]; 35 char *env[NUMBUF+1]; 36 int i = 0; 37 snprintf(buf[i++], BUFLEN-1, "%s=%s", "HOME", "/home/sql"); 38 snprintf(buf[i++], BUFLEN-1, "%s=%s", "TERM", "xterm"); 39 snprintf(buf[i++], BUFLEN-1, "%s=%s", "USER", "sql"); 40 snprintf(buf[i++], BUFLEN-1, "%s=%s", "SHELL", "/usr/local/bin/bash"); 41 snprintf(buf[i++], BUFLEN-1, "%s=%s", "PATH", "/usr/kerberos/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin"); 42 for(i = 0; i < NUMBUF; i++) { 43 env[i] = buf[i]; 44 } 45 env[i] = NULL; 46 32 47 char uid[21]; // 64-bit uid requires 21 33 48 char gid[21]; // 64-bit gid requires 21 … … 56 71 } 57 72 58 exec v(SIGNUP_PATH,v);73 execle(SIGNUP_PATH, v, env); 59 74 return 1; 60 75 } -
server/fedora/specs/lockeradm.spec
r2 r3 32 32 install -D signup-scripts-frontend $RPM_BUILD_ROOT/usr/local/sbin/signup-scripts-frontend 33 33 install -D signup-scripts-backend $RPM_BUILD_ROOT/usr/local/sbin/signup-scripts-backend 34 install -D bashrc $RPM_BUILD_ROOT/usr/local/etc/bashrc 34 35 35 36 %clean … … 38 39 %files 39 40 %defattr(0644, root, root) 41 /usr/local/etc/bashrc 40 42 %defattr(0755, root, root) 41 43 /usr/local/sbin/admof
Note: See TracChangeset
for help on using the changeset viewer.