VirtualBox

Changeset 3226 in kBuild


Ignore:
Timestamp:
May 29, 2018 8:58:06 AM (7 years ago)
Author:
bird
Message:

kmk/install: build fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/kmkbuiltin/install.c

    r3219 r3226  
    325325                struct group *gp;
    326326                if ((gp = getgrnam(group)) != NULL)
    327                         gid = gp->gr_gid;
     327                        This.gid = gp->gr_gid;
    328328                else
    329329#endif
     
    340340                struct passwd *pp;
    341341                if ((pp = getpwnam(owner)) != NULL)
    342                         uid = pp->pw_uid;
     342                        This.uid = pp->pw_uid;
    343343                else
    344344#endif
     
    737737         */
    738738#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))) {
    742742                /* Try to turn off the immutable bits. */
    743743                if (to_sb.st_flags & NOCHANGEBITS)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette