Changeset 2290 in kBuild for trunk/src/kash/miscbltin.c
- Timestamp:
- Feb 27, 2009 4:08:07 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/miscbltin.c
r1233 r2290 59 59 #include "mystring.h" 60 60 #include "shinstance.h" 61 #include "shfile.h" 61 62 62 63 #undef rflag … … 220 221 } 221 222 222 INTOFF; 223 mask = umask(0); 224 umask(mask); 225 INTON; 223 mask = shfile_get_umask(&psh->fdtab); 226 224 227 225 if ((ap = *psh->argptr) == NULL) { … … 268 266 mask = (mask << 3) + (*ap - '0'); 269 267 } while (*++ap != '\0'); 270 umask(mask);268 shfile_set_umask(&psh->fdtab, mask); 271 269 } else { 272 270 void *set; … … 275 273 if ((set = bsd_setmode(psh, ap)) != 0) { 276 274 mask = bsd_getmode(set, ~mask & 0777); 277 ckfree( set);275 ckfree(psh, set); 278 276 } 279 277 INTON; … … 281 279 error(psh, "Illegal mode: %s", ap); 282 280 283 umask(~mask & 0777);281 shfile_set_umask(&psh->fdtab, ~mask & 0777); 284 282 } 285 283 }
Note:
See TracChangeset
for help on using the changeset viewer.