Changeset 252 for branches/samba-3.2.x/source/dynconfig.c
- Timestamp:
- Jun 5, 2009, 8:30:19 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/source/dynconfig.c
r142 r252 100 100 snprintf(buffer, 260, "%s/samba/smb.conf", getenv("ETC")); 101 101 } 102 103 /* Set UNIXROOT to x:\MPTN if UNIXROOT is undefined */ 104 if (getenv("UNIXROOT") == NULL) { 105 static char unixroot[1024] = ""; 106 strncpy(unixroot,getenv("ETC"),strlen(getenv("ETC"))-4); 107 setenv("UNIXROOT",unixroot,0); 108 } 109 /* Make sure TMPIR points to a proper value */ 110 static char tmpdir[1024] = ""; 111 if (getenv("TMPDIR") == NULL && getenv("TEMP") != NULL) { 112 strncpy(tmpdir,getenv("TEMP"),strlen(getenv("TEMP"))); 113 setenv("TMPDIR",tmpdir,0); 114 } 115 if (getenv("TMPDIR") == NULL) { 116 strncpy(tmpdir,getenv("ETC"),2); 117 stpcpy(tmpdir,"/OS2/SYSTEM"); 118 setenv("TMPDIR",tmpdir,0); 119 } 102 120 if (dyn_CONFIGFILE == NULL) { 103 104 return buffer;105 }121 return buffer; 122 } 123 106 124 return dyn_CONFIGFILE; 107 125 }
Note:
See TracChangeset
for help on using the changeset viewer.