source:
branches/samba-3.0/packaging/Debian/debian-sarge/patches/fhs.patch@
286
| Last change on this file since 286 was 286, checked in by , 16 years ago | |
|---|---|
| File size: 21.7 KB | |
-
source/Makefile.in
diff -uNr samba-3.0.10.orig/source/Makefile.in samba-3.0.10/source/Makefile.in
old new 90 90 # the directory where lock files go 91 91 LOCKDIR = @lockdir@ 92 92 93 94 95 96 97 98 99 93 100 # the directory where pid files go 94 101 PIDDIR = @piddir@ 95 102 # man pages language(s) … … 114 121 PATH_FLAGS4 = $(PATH_FLAGS3) -DSWATDIR=\"$(SWATDIR)\" -DLOCKDIR=\"$(LOCKDIR)\" -DPIDDIR=\"$(PIDDIR)\" 115 122 PATH_FLAGS5 = $(PATH_FLAGS4) -DLIBDIR=\"$(LIBDIR)\" \ 116 123 -DLOGFILEBASE=\"$(LOGFILEBASE)\" -DSHLIBEXT=\"@SHLIBEXT@\" 117 PATH_FLAGS6 = $(PATH_FLAGS5) -DCONFIGDIR=\"$(CONFIGDIR)\" 124 PATH_FLAGS6 = $(PATH_FLAGS5) -DCONFIGDIR=\"$(CONFIGDIR)\" 118 125 PATH_FLAGS = $(PATH_FLAGS6) $(PASSWD_FLAGS) 119 126 120 127 # Note that all executable programs now provide for an optional executable suffix. … … 1319 1326 @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS) $(DESTDIR)$(BINDIR) $(SCRIPTS) 1320 1327 1321 1328 installdat: installdirs 1322 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR) $( LIBDIR) $(srcdir)1329 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR) $(DIR) $(srcdir) 1323 1330 1324 1331 installmsg: installdirs 1325 1332 @$(SHELL) $(srcdir)/script/installmsg.sh $(DESTDIR) $(LIBDIR) $(srcdir) -
source/configure.in
diff -uNr samba-3.0.10.orig/source/configure.in samba-3.0.10/source/configure.in
old new 35 35 [ --with-fhs Use FHS-compliant paths (default=no)], 36 36 [ case "$withval" in 37 37 yes) 38 lockdir="\${VARDIR}/ lib/samba"38 lockdir="\${VARDIR}//samba" 39 39 piddir="\${VARDIR}/run" 40 40 mandir="\${prefix}/share/man" 41 41 logfilebase="\${VARDIR}/log/samba" … … 43 43 libdir="\${prefix}/lib/samba" 44 44 configdir="${sysconfdir}/samba" 45 45 swatdir="\${DATADIR}/samba/swat" 46 47 48 49 46 50 ;; 47 51 esac]) 48 52 … … 201 205 AC_SUBST(sbindir) 202 206 AC_SUBST(rootsbindir) 203 207 AC_SUBST(pammodulesdir) 208 209 210 204 211 205 212 dnl Unique-to-Samba variables we'll be playing with. 206 213 AC_SUBST(SHELL) -
source/dynconfig.c
diff -uNr samba-3.0.10.orig/source/dynconfig.c samba-3.0.10/source/dynconfig.c
old new 53 53 pstring dyn_LMHOSTSFILE = LMHOSTSFILE; 54 54 55 55 /** 56 57 58 59 60 61 62 56 63 * @brief Samba library directory. 57 64 * 58 65 * @sa lib_path() to get the path to a file inside the LIBDIR. … … 70 77 71 78 pstring dyn_SMB_PASSWD_FILE = SMB_PASSWD_FILE; 72 79 pstring dyn_PRIVATE_DIR = PRIVATE_DIR; 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 -
source/include/dynconfig.h
diff -uNr samba-3.0.10.orig/source/include/dynconfig.h samba-3.0.10/source/include/dynconfig.h
old new 31 31 extern pstring dyn_CONFIGFILE; 32 32 extern pstring dyn_LOGFILEBASE, dyn_LMHOSTSFILE; 33 33 extern pstring dyn_LIBDIR; 34 34 35 extern fstring dyn_SHLIBEXT; 35 36 extern pstring dyn_LOCKDIR; 36 37 extern pstring dyn_PIDDIR; 37 38 extern pstring dyn_SMB_PASSWD_FILE; 38 39 extern pstring dyn_PRIVATE_DIR; 40 41 42 -
source/intl/lang_tdb.c
diff -uNr samba-3.0.10.orig/source/intl/lang_tdb.c samba-3.0.10/source/intl/lang_tdb.c
old new 128 128 if (!lang) 129 129 return True; 130 130 131 asprintf(&msg_path, "%s.msg", lib_path((const char *)lang));131 asprintf(&msg_path, "%s.msg", _path((const char *)lang)); 132 132 if (stat(msg_path, &st) != 0) { 133 133 /* the msg file isn't available */ 134 134 DEBUG(10, ("lang_tdb_init: %s: %s\n", msg_path, -
source/lib/util.c
diff -uNr samba-3.0.10.orig/source/lib/util.c samba-3.0.10/source/lib/util.c
old new 2362 2362 } 2363 2363 2364 2364 /** 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2365 2420 * @brief Returns the platform specific shared library extension. 2366 2421 * 2367 2422 * @retval Pointer to a static #fstring containing the extension. -
source/libsmb/samlogon_cache.c
diff -uNr samba-3.0.10.orig/source/libsmb/samlogon_cache.c samba-3.0.10/source/libsmb/samlogon_cache.c
old new 34 34 BOOL netsamlogon_cache_init(void) 35 35 { 36 36 if (!netsamlogon_tdb) { 37 netsamlogon_tdb = tdb_open_log( lock_path(NETSAMLOGON_TDB), 0,37 netsamlogon_tdb = tdb_open_log(_path(NETSAMLOGON_TDB), 0, 38 38 TDB_DEFAULT, O_RDWR | O_CREAT, 0600); 39 39 } 40 40 -
source/nmbd/nmbd_serverlistdb.c
diff -uNr samba-3.0.10.orig/source/nmbd/nmbd_serverlistdb.c samba-3.0.10/source/nmbd/nmbd_serverlistdb.c
old new 327 327 328 328 updatecount++; 329 329 330 pstrcpy(fname, lp_lockdir());330 pstrcpy(fname,()); 331 331 trim_char(fname,'\0' ,'/'); 332 332 pstrcat(fname,"/"); 333 333 pstrcat(fname,SERVER_LIST); -
source/nmbd/nmbd_winsserver.c
diff -uNr samba-3.0.10.orig/source/nmbd/nmbd_winsserver.c samba-3.0.10/source/nmbd/nmbd_winsserver.c
old new 234 234 235 235 add_samba_names_to_subnet(wins_server_subnet); 236 236 237 if((fp = x_fopen( lock_path(WINS_LIST),O_RDONLY,0)) == NULL) {237 if((fp = x_fopen(_path(WINS_LIST),O_RDONLY,0)) == NULL) { 238 238 DEBUG(2,("initialise_wins: Can't open wins database file %s. Error was %s\n", 239 239 WINS_LIST, strerror(errno) )); 240 240 return True; … … 1810 1810 } 1811 1811 } 1812 1812 1813 slprintf(fname,sizeof(fname)-1,"%s/%s", lp_lockdir(), WINS_LIST);1813 slprintf(fname,sizeof(fname)-1,"%s/%s", (), WINS_LIST); 1814 1814 all_string_sub(fname,"//", "/", 0); 1815 1815 slprintf(fnamenew,sizeof(fnamenew)-1,"%s.%u", fname, (unsigned int)sys_getpid()); 1816 1816 -
source/nsswitch/winbindd_cache.c
diff -uNr samba-3.0.23.orig/source/nsswitch/winbindd_cache.c samba-3.0.23/source/nsswitch/winbindd_cache.c
old new 57 57 return True; 58 58 59 59 /* when working offline we must not clear the cache on restart */ 60 wcache->tdb = tdb_open_log( lock_path("winbindd_cache.tdb"),60 wcache->tdb = tdb_open_log(_path("winbindd_cache.tdb"), 61 61 WINBINDD_CACHE_TDB_DEFAULT_HASH_SIZE, 62 62 TDB_DEFAULT /*TDB_CLEAR_IF_FIRST*/, O_RDWR|O_CREAT, 0600); 63 63 … … 2223 2223 tdb_close(wcache->tdb); 2224 2224 wcache->tdb = NULL; 2225 2225 2226 if (unlink( lock_path("winbindd_cache.tdb")) == -1) {2226 if (unlink(_path("winbindd_cache.tdb")) == -1) { 2227 2227 DEBUG(0,("initialize_winbindd_cache: unlink %s failed %s ", 2228 lock_path("winbindd_cache.tdb"),2228 _path("winbindd_cache.tdb"), 2229 2229 strerror(errno) )); 2230 2230 return False; 2231 2231 } … … 2487 2487 return; 2488 2488 2489 2489 /* when working offline we must not clear the cache on restart */ 2490 wcache->tdb = tdb_open_log( lock_path("winbindd_cache.tdb"),2490 wcache->tdb = tdb_open_log(_path("winbindd_cache.tdb"), 2491 2491 WINBINDD_CACHE_TDB_DEFAULT_HASH_SIZE, 2492 2492 lp_winbind_offline_logon() ? TDB_DEFAULT : (TDB_DEFAULT | TDB_CLEAR_IF_FIRST), 2493 2493 O_RDWR|O_CREAT, 0600); -
source/param/loadparm.c
diff -uNr samba-3.0.10.orig/source/param/loadparm.c samba-3.0.10/source/param/loadparm.c
old new 104 104 char *szAddPrinterCommand; 105 105 char *szDeletePrinterCommand; 106 106 char *szOs2DriverMap; 107 108 109 107 110 char *szLockDir; 108 111 char *szPidDir; 109 112 char *szRootdir; … … 1105 1108 {"config file", P_STRING, P_GLOBAL, &Globals.szConfigFile, NULL, NULL, FLAG_HIDE}, 1106 1109 {"preload", P_STRING, P_GLOBAL, &Globals.szAutoServices, NULL, NULL, FLAG_ADVANCED}, 1107 1110 {"auto services", P_STRING, P_GLOBAL, &Globals.szAutoServices, NULL, NULL, FLAG_ADVANCED}, 1111 1112 1113 1114 1108 1115 {"lock directory", P_STRING, P_GLOBAL, &Globals.szLockDir, NULL, NULL, FLAG_ADVANCED}, 1109 1116 {"lock dir", P_STRING, P_GLOBAL, &Globals.szLockDir, NULL, NULL, FLAG_HIDE}, 1117 1110 1118 {"pid directory", P_STRING, P_GLOBAL, &Globals.szPidDir, NULL, NULL, FLAG_ADVANCED}, 1111 1119 #ifdef WITH_UTMP 1112 1120 {"utmp directory", P_STRING, P_GLOBAL, &Globals.szUtmpDir, NULL, NULL, FLAG_ADVANCED}, -
source/passdb/pdb_tdb.c
diff -uNr samba-3.0.23.orig/source/passdb/pdb_tdb.c samba-3.0.23/source/passdb/pdb_tdb.c
old new 1598 1598 /* save the path for later */ 1599 1599 1600 1600 if ( !location ) { 1601 pstr_sprintf( tdbfile, "%s /%s", lp_private_dir(), PASSDB_FILE_NAME);1601 pstr_sprintf( tdbfile, "%s ); 1602 1602 pfile = tdbfile; 1603 1603 } 1604 1604 pstrcpy( tdbsam_filename, pfile ); -
source/passdb/secrets.c
diff -uNr samba-3.0.10.orig/source/passdb/secrets.c samba-3.0.10/source/passdb/secrets.c
old new 55 55 if (tdb) 56 56 return True; 57 57 58 pstrcpy(fname, lp_private_dir()); 59 pstrcat(fname,"/secrets.tdb"); 58 pstrcpy(fname, state_path("secrets.tdb")); 60 59 61 60 tdb = tdb_open_log(fname, 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600); 62 61 -
source/printing/nt_printing.c
diff -uNr samba-3.0.10.orig/source/printing/nt_printing.c samba-3.0.10/source/printing/nt_printing.c
old new 298 298 299 299 if (tdb_drivers) 300 300 tdb_close(tdb_drivers); 301 tdb_drivers = tdb_open_log( lock_path("ntdrivers.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600);301 tdb_drivers = tdb_open_log(_path("ntdrivers.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600); 302 302 if (!tdb_drivers) { 303 303 DEBUG(0,("nt_printing_init: Failed to open nt drivers database %s (%s)\n", 304 lock_path("ntdrivers.tdb"), strerror(errno) ));304 _path("ntdrivers.tdb"), strerror(errno) )); 305 305 return False; 306 306 } 307 307 308 308 if (tdb_printers) 309 309 tdb_close(tdb_printers); 310 tdb_printers = tdb_open_log( lock_path("ntprinters.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600);310 tdb_printers = tdb_open_log(_path("ntprinters.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600); 311 311 if (!tdb_printers) { 312 312 DEBUG(0,("nt_printing_init: Failed to open nt printers database %s (%s)\n", 313 lock_path("ntprinters.tdb"), strerror(errno) ));313 _path("ntprinters.tdb"), strerror(errno) )); 314 314 return False; 315 315 } 316 316 317 317 if (tdb_forms) 318 318 tdb_close(tdb_forms); 319 tdb_forms = tdb_open_log( lock_path("ntforms.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600);319 tdb_forms = tdb_open_log(_path("ntforms.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600); 320 320 if (!tdb_forms) { 321 321 DEBUG(0,("nt_printing_init: Failed to open nt forms database %s (%s)\n", 322 lock_path("ntforms.tdb"), strerror(errno) ));322 _path("ntforms.tdb"), strerror(errno) )); 323 323 return False; 324 324 } 325 325 -
source/printing/printing.c
diff -uNr samba-3.0.10.orig/source/printing/printing.c samba-3.0.10/source/printing/printing.c
old new 177 177 int services = lp_numservices(); 178 178 int snum; 179 179 180 unlink( lock_path("printing.tdb"));181 pstrcpy(printing_path, lock_path("printing"));180 unlink(_path("printing.tdb")); 181 pstrcpy(printing_path,_path("printing")); 182 182 mkdir(printing_path,0755); 183 183 184 184 /* handle a Samba upgrade */ -
source/printing/printing_db.c
diff -uNr samba-3.0.10.orig/source/printing/printing_db.c samba-3.0.10/source/printing/printing_db.c
old new 89 89 DLIST_ADD(print_db_head, p); 90 90 } 91 91 92 pstrcpy(printdb_path, lock_path("printing/"));92 pstrcpy(printdb_path, _path("printing/")); 93 93 pstrcat(printdb_path, printername); 94 94 pstrcat(printdb_path, ".tdb"); 95 95 -
source/registry/reg_db.c
diff -uNr samba-3.0.21.orig/source/registry/reg_db.c samba-3.0.21/source/registry/reg_db.c
old new 205 205 if ( tdb_reg ) 206 206 return True; 207 207 208 if ( !(tdb_reg = tdb_open_log( lock_path("registry.tdb"), 0, TDB_DEFAULT, O_RDWR, 0600)) )208 if ( !(tdb_reg = tdb_open_log(_path("registry.tdb"), 0, TDB_DEFAULT, O_RDWR, 0600)) ) 209 209 { 210 tdb_reg = tdb_open_log( lock_path("registry.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600);210 tdb_reg = tdb_open_log(_path("registry.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600); 211 211 if ( !tdb_reg ) { 212 212 DEBUG(0,("regdb_init: Failed to open registry %s (%s)\n", 213 lock_path("registry.tdb"), strerror(errno) ));213 _path("registry.tdb"), strerror(errno) )); 214 214 return False; 215 215 } 216 216 … … 252 252 253 253 become_root(); 254 254 255 tdb_reg = tdb_open_log( lock_path("registry.tdb"), 0, TDB_DEFAULT, O_RDWR, 0600);255 tdb_reg = tdb_open_log(_path("registry.tdb"), 0, TDB_DEFAULT, O_RDWR, 0600); 256 256 if ( !tdb_reg ) { 257 257 result = ntstatus_to_werror( map_nt_error_from_unix( errno ) ); 258 258 DEBUG(0,("regdb_open: Failed to open %s! (%s)\n", 259 lock_path("registry.tdb"), strerror(errno) ));259 _path("registry.tdb"), strerror(errno) )); 260 260 } 261 261 262 262 unbecome_root(); -
source/lib/sharesec.c
diff -uNr samba-3.0.23.orig/source/lib/sharesec.c samba-3.0.23/source/lib/sharesec.c
old new 47 47 return True; 48 48 } 49 49 50 share_tdb = tdb_open_log( lock_path("share_info.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600);50 share_tdb = tdb_open_log(_path("share_info.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600); 51 51 if (!share_tdb) { 52 52 DEBUG(0,("Failed to open share info database %s (%s)\n", 53 lock_path("share_info.tdb"), strerror(errno) ));53 _path("share_info.tdb"), strerror(errno) )); 54 54 return False; 55 55 } 56 56 -
source/smbd/lanman.c
diff -uNr samba-3.0.23.orig/source/smbd/lanman.c samba-3.0.23/source/smbd/lanman.c
old new 1052 1052 BOOL local_list_only; 1053 1053 int i; 1054 1054 1055 lines = file_lines_load( lock_path(SERVER_LIST), NULL, 0);1055 lines = file_lines_load(_path(SERVER_LIST), NULL, 0); 1056 1056 if (!lines) { 1057 DEBUG(4,("Can't open %s - %s\n", lock_path(SERVER_LIST),strerror(errno)));1057 DEBUG(4,("Can't open %s - %s\n",_path(SERVER_LIST),strerror(errno))); 1058 1058 return 0; 1059 1059 } 1060 1060 -
source/printing/nt_printing.c
diff -uNr samba-3.0.11.orig/source/printing/nt_printing.c samba-3.0.11/source/printing/nt_printing.c
old new 2065 2065 close_all_print_db(); 2066 2066 2067 2067 if (geteuid() == 0) { 2068 pstrcpy(printdb_path, lock_path("printing/"));2068 pstrcpy(printdb_path, _path("printing/")); 2069 2069 pstrcat(printdb_path, sharename); 2070 2070 pstrcat(printdb_path, ".tdb"); 2071 2071 -
source/groupdb/mapping_tdb.c
diff -uPr samba-3.0.25a.orig/source/groupdb/mapping_tdb.c samba-3.0.25a/source/groupdb/mapping_tdb.c
old new 39 39 if (tdb) 40 40 return True; 41 41 42 tdb = tdb_open_log( lock_path("group_mapping.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600);42 tdb = tdb_open_log(_path("group_mapping.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600); 43 43 if (!tdb) { 44 44 DEBUG(0,("Failed to open group mapping database\n")); 45 45 return False; -
source/lib/account_pol.c
diff -uPr samba-3.0.25a.orig/source/lib/account_pol.c samba-3.0.25a/source/lib/account_pol.c
old new 213 213 return True; 214 214 } 215 215 216 tdb = tdb_open_log( lock_path("account_policy.tdb"), 0, TDB_DEFAULT, O_RDWR, 0600);216 tdb = tdb_open_log(_path("account_policy.tdb"), 0, TDB_DEFAULT, O_RDWR, 0600); 217 217 if (!tdb) { /* the account policies files does not exist or open failed, try to create a new one */ 218 tdb = tdb_open_log( lock_path("account_policy.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600);218 tdb = tdb_open_log(_path("account_policy.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600); 219 219 if (!tdb) { 220 220 DEBUG(0,("Failed to open account policy database\n")); 221 221 return False; -
source/lib/util_unistr.c
diff -uPr samba-3.0.25a.orig/source/lib/util_unistr.c samba-3.0.25a/source/lib/util_unistr.c
old new 88 88 } 89 89 initialised = 1; 90 90 91 upcase_table = (smb_ucs2_t *)map_file( lib_path("upcase.dat"),91 upcase_table = (smb_ucs2_t *)map_file(_path("upcase.dat"), 92 92 0x20000); 93 93 upcase_table_use_unmap = ( upcase_table != NULL ); 94 94 95 lowcase_table = (smb_ucs2_t *)map_file( lib_path("lowcase.dat"),95 lowcase_table = (smb_ucs2_t *)map_file(_path("lowcase.dat"), 96 96 0x20000); 97 97 lowcase_table_use_unmap = ( lowcase_table != NULL ); 98 98 … … 230 230 return; 231 231 } 232 232 233 valid_file = (uint8 *)map_file( lib_path("valid.dat"), 0x10000);233 valid_file = (uint8 *)map_file(_path("valid.dat"), 0x10000); 234 234 if (valid_file) { 235 235 valid_table = valid_file; 236 236 mapped_file = 1; -
source/libsmb/samlogon_cache.c
diff -uPr samba-3.0.25a.orig/source/libsmb/samlogon_cache.c samba-3.0.25a/source/libsmb/samlogon_cache.c
old new 67 67 winbindd_cache.tdb open. Open the tdb if a NULL is passed. */ 68 68 69 69 if (!tdb) { 70 tdb = tdb_open_log( lock_path("winbindd_cache.tdb"),70 tdb = tdb_open_log(_path("winbindd_cache.tdb"), 71 71 WINBINDD_CACHE_TDB_DEFAULT_HASH_SIZE, 72 72 TDB_DEFAULT, O_RDWR, 0600); 73 73 if (!tdb) { -
source/nsswitch/idmap_tdb.c
diff -uPr samba-3.0.25a.orig/source/nsswitch/idmap_tdb.c samba-3.0.25a/source/nsswitch/idmap_tdb.c
old new 247 247 } 248 248 249 249 /* use the old database if present */ 250 tdbfile = talloc_strdup(ctx, lock_path("winbindd_idmap.tdb"));250 tdbfile = talloc_strdup(ctx, _path("winbindd_idmap.tdb")); 251 251 if (!tdbfile) { 252 252 DEBUG(0, ("Out of memory!\n")); 253 253 ret = NT_STATUS_NO_MEMORY; -
source/passdb/pdb_tdb.c
diff -uPr samba-3.0.25a.orig/source/passdb/pdb_tdb.c samba-3.0.25a/source/passdb/pdb_tdb.c
old new 1559 1559 uint32 rid; 1560 1560 BOOL ret = False; 1561 1561 1562 tdb = tdb_open_log( lock_path("winbindd_idmap.tdb"), 0,1562 tdb = tdb_open_log(_path("winbindd_idmap.tdb"), 0, 1563 1563 TDB_DEFAULT, O_RDWR | O_CREAT, 0644); 1564 1564 1565 1565 if (tdb == NULL) {
Note:
See TracBrowser
for help on using the repository browser.
