Changeset 5 for server/common
- Timestamp:
- Sep 30, 2006, 5:31:16 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/common/oursrc/sqladm/signup-sql.c
r4 r5 31 31 32 32 #define NUMBUF 5 33 #define BUFLEN 12833 #define BUFLEN 256 34 34 char buf[NUMBUF][BUFLEN]; 35 35 char *env[NUMBUF+1]; 36 36 int i = 0; 37 snprintf(buf[i++], BUFLEN-1, "%s=%s", "HOME", "/ home/sql");37 snprintf(buf[i++], BUFLEN-1, "%s=%s", "HOME", "/afs/athena.mit.edu/contrib/sql"); 38 38 snprintf(buf[i++], BUFLEN-1, "%s=%s", "TERM", "xterm"); 39 39 snprintf(buf[i++], BUFLEN-1, "%s=%s", "USER", "sql"); 40 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");41 snprintf(buf[i++], BUFLEN-1, "%s=%s", "PATH", "/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin"); 42 42 for(i = 0; i < NUMBUF; i++) { 43 43 env[i] = buf[i];
Note: See TracChangeset
for help on using the changeset viewer.