miscbltin.c (e4c880af3f112d682fe5b0ac5517521f48cdfc33) | miscbltin.c (670528cd789a9ce3d51e32edddc02e6b7ff358f9) |
---|---|
1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Kenneth Almquist. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 260 unchanged lines hidden (view full) --- 269 do { 270 if (*ap >= '8' || *ap < '0') 271 error("Illegal number: %s", *argptr); 272 mask = (mask << 3) + (*ap - '0'); 273 } while (*++ap != '\0'); 274 umask(mask); 275 } else { 276 void *set; | 1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Kenneth Almquist. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 260 unchanged lines hidden (view full) --- 269 do { 270 if (*ap >= '8' || *ap < '0') 271 error("Illegal number: %s", *argptr); 272 mask = (mask << 3) + (*ap - '0'); 273 } while (*++ap != '\0'); 274 umask(mask); 275 } else { 276 void *set; |
277 INTOFF; |
|
277 if ((set = setmode (ap)) == 0) 278 error("Illegal number: %s", ap); 279 280 mask = getmode (set, ~mask & 0777); 281 umask(~mask & 0777); 282 free(set); | 278 if ((set = setmode (ap)) == 0) 279 error("Illegal number: %s", ap); 280 281 mask = getmode (set, ~mask & 0777); 282 umask(~mask & 0777); 283 free(set); |
284 INTON; |
|
283 } 284 } 285 return 0; 286} 287 288/* 289 * ulimit builtin 290 * --- 163 unchanged lines hidden --- | 285 } 286 } 287 return 0; 288} 289 290/* 291 * ulimit builtin 292 * --- 163 unchanged lines hidden --- |