Changeset 516 for trunk/src/sh_suidchk.c
- Timestamp:
- Oct 31, 2016, 8:31:24 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_suidchk.c
r483 r516 997 997 * by longjmp' warning. And no, 'volatile' proved insufficient. 998 998 */ 999 static void * sh_dummy_dirlist = NULL;1000 static void * sh_dummy_itmp= NULL;999 void * sh_dummy_idirlist = NULL; 1000 void * sh_dummy_itmp = NULL; 1001 1001 1002 1002 … … 1028 1028 * Avoids the 'clobbered by longjmp' warning. 1029 1029 */ 1030 sh_dummy_ dirlist = (void*) &dirlist;1031 sh_dummy_itmp = (void*) &tmp;1030 sh_dummy_idirlist = (void*) &dirlist; 1031 sh_dummy_itmp = (void*) &tmp; 1032 1032 1033 1033 if (iname == NULL) … … 1146 1146 ShSuidchkFps) , 0); 1147 1147 } 1148 1148 1149 1149 status = (int) retry_lstat(FIL__, __LINE__, tmpcat, &buf); 1150 1150 … … 1186 1186 */ 1187 1187 fs = filesystem_type (tmpcat, tmpcat, &buf); 1188 1188 1189 if (fs != NULL 1189 1190 #ifndef SH_SUIDTESTDIR … … 1520 1521 status = sh_suidchk_check_internal (SH_SUIDTESTDIR); 1521 1522 #else 1523 #error 1522 1524 status = sh_suidchk_check_internal ("/"); 1523 1525 #endif … … 2211 2213 current_dev = statp->st_dev; 2212 2214 current_fstype = filesystem_type_uncached (path, relpath, statp); 2215 2213 2216 return current_fstype; 2214 2217 } … … 2232 2235 #endif 2233 2236 2234 #ifdef FSTYPE_MNTENT /* 4.3BSD, SunOS, HP-UX, Dynix, Irix .*/2237 #ifdef FSTYPE_MNTENT /* 4.3BSD, SunOS, HP-UX, Dynix, Irix,Linux */ 2235 2238 char *table = MOUNTED; 2236 2239 FILE *mfp; … … 2294 2297 volatile int elevel = SH_ERR_ERR; 2295 2298 size_t tlen = strlen(mnt->mnt_dir); 2296 2299 2297 2300 if (tlen >= 6 && 0 == strcmp(&((mnt->mnt_dir)[tlen-6]), _("/.gvfs"))) 2298 2301 elevel = SH_ERR_NOTICE; 2299 2302 else if (tlen >= 5 && 0 == strcmp(&((mnt->mnt_dir)[tlen-5]), _("/gvfs"))) 2300 2303 elevel = SH_ERR_NOTICE; 2301 2304 else if (0 == strcmp (mnt->mnt_type, _("tracefs"))) 2305 elevel = SH_ERR_NOTICE; 2306 2302 2307 sl_snprintf(errmsg, sizeof(errmsg), _("stat(%s) failed"), 2303 2308 mnt->mnt_dir); … … 2307 2312 _("filesystem_type_uncached") ); 2308 2313 SH_MUTEX_UNLOCK(mutex_thread_nolog); 2309 return NULL;2314 continue; 2310 2315 } 2311 2316 dev = disk_stats.st_dev;
Note:
See TracChangeset
for help on using the changeset viewer.