Changeset 5 for server/common/oursrc


Ignore:
Timestamp:
Sep 30, 2006, 5:31:16 PM (16 years ago)
Author:
jbarnold
Message:
fixed incorrect HOME and improved PATH
File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/common/oursrc/sqladm/signup-sql.c

    r4 r5  
    3131
    3232#define NUMBUF 5
    33 #define BUFLEN 128
     33#define BUFLEN 256
    3434        char buf[NUMBUF][BUFLEN];
    3535        char *env[NUMBUF+1];
    3636        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");
    3838        snprintf(buf[i++], BUFLEN-1, "%s=%s", "TERM", "xterm");
    3939        snprintf(buf[i++], BUFLEN-1, "%s=%s", "USER", "sql");
    4040        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");
    4242        for(i = 0; i < NUMBUF; i++) {
    4343                env[i] = buf[i];
Note: See TracChangeset for help on using the changeset viewer.