Changeset 3226 in kBuild
- Timestamp:
- May 29, 2018 8:58:06 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/kmkbuiltin/install.c
r3219 r3226 325 325 struct group *gp; 326 326 if ((gp = getgrnam(group)) != NULL) 327 gid = gp->gr_gid;327 This.gid = gp->gr_gid; 328 328 else 329 329 #endif … … 340 340 struct passwd *pp; 341 341 if ((pp = getpwnam(owner)) != NULL) 342 uid = pp->pw_uid;342 This.uid = pp->pw_uid; 343 343 else 344 344 #endif … … 737 737 */ 738 738 #ifdef UF_IMMUTABLE 739 if (( gid != (gid_t)-1 && gid != to_sb.st_gid) ||740 ( uid != (uid_t)-1 && uid != to_sb.st_uid) ||741 ( mode != (to_sb.st_mode & ALLPERMS))) {739 if ((pThis->gid != (gid_t)-1 && gid != to_sb.st_gid) || 740 (pThis->uid != (uid_t)-1 && uid != to_sb.st_uid) || 741 (pThis->mode != (to_sb.st_mode & ALLPERMS))) { 742 742 /* Try to turn off the immutable bits. */ 743 743 if (to_sb.st_flags & NOCHANGEBITS)
Note:
See TracChangeset
for help on using the changeset viewer.