VirtualBox

Changeset 377 in kBuild for trunk/src


Ignore:
Timestamp:
Dec 18, 2005 12:28:07 PM (19 years ago)
Author:
bird
Message:

Save and restore umask.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmake/kmkbuiltin.c

    r376 r377  
    162162{
    163163    const char *pszCmd = argv[0];
     164    int         iumask;
    164165    int         rc;
    165166
     
    177178     * String switch on the command.
    178179     */
     180    iumask = umask(0);
     181    umask(iumask);
    179182    if (!strcmp(pszCmd, "append"))
    180183        rc = kmk_builtin_append(argc, argv, environ);
     
    202205    }
    203206    g_progname = "kmk";                 /* paranoia, make sure it's not pointing at a freed argv[0]. */
     207    umask(iumask);
    204208    return rc;
    205209}
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