Changeset 137 for trunk/src/sh_unix.c
- Timestamp:
- Oct 28, 2007, 1:17:58 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_unix.c
r134 r137 94 94 #include "sh_tiger.h" 95 95 #include "sh_prelink.h" 96 #include "sh_pthread.h" 96 97 97 98 /* moved here from far below … … 956 957 static int tf_add_trusted_user_int(const char * c) 957 958 { 958 registerstruct passwd * w;959 struct passwd * w; 959 960 int count; 960 961 uid_t pwid = (uid_t)-1; … … 970 971 */ 971 972 #if defined(HAVE_PTHREAD) && defined (_POSIX_THREAD_SAFE_FUNCTIONS) && defined(HAVE_GETPWNAM_R) 972 s tatus = sh_getpwnam_r(c, &pwd, buffer, sizeof(buffer), &w);973 sh_getpwnam_r(c, &pwd, buffer, sizeof(buffer), &w); 973 974 #else 974 975 w = sh_getpwnam(c); … … 3243 3244 ShFileType type; 3244 3245 unsigned int mode; 3245 char * name;3246 3246 char * tmp; 3247 3247 char * tmp2; … … 3545 3545 3546 3546 3547 if (NULL == sh_unix_getUIDname(SH_ERR_ALL, buf.st_uid, theFile->c_owner, USER_MAX+ )) {3547 if (NULL == sh_unix_getUIDname(SH_ERR_ALL, buf.st_uid, theFile->c_owner, USER_MAX+1)) { 3548 3548 3549 3549 tmp2 = sh_util_safe_name (theFile->fullpath); … … 3571 3571 tmp2 = sh_util_safe_name ((filename == NULL) ? 3572 3572 theFile->fullpath : filename); 3573 (void) sh_unix_time(theFile->mtime, timestr, sizeof(timestr ing));3573 (void) sh_unix_time(theFile->mtime, timestr, sizeof(timestr)); 3574 3574 sh_error_handle ((-1), FIL__, __LINE__, 0, MSG_FI_LIST, 3575 3575 theFile->c_mode,
Note:
See TracChangeset
for help on using the changeset viewer.