mkdir.c (2923) | mkdir.c (2959) |
---|---|
1/* 2 * Copyright (c) 1983, 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 109 unchanged lines hidden (view full) --- 118 char *path; 119{ 120 struct stat sb; 121 mode_t numask, oumask; 122 int first; 123 char *p; 124 125 p = path; | 1/* 2 * Copyright (c) 1983, 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 109 unchanged lines hidden (view full) --- 118 char *path; 119{ 120 struct stat sb; 121 mode_t numask, oumask; 122 int first; 123 char *p; 124 125 p = path; |
126 oumask = (mode_t)NULL; | 126 oumask = 0; |
127 if (p[0] == '/') /* Skip leading '/'. */ 128 ++p; 129 for (first = 1;; ++p) { 130 if (p[0] == '\0' || (p[0] == '/' && p[1] == '\0')) 131 break; 132 if (p[0] != '/') 133 continue; 134 *p = '\0'; --- 38 unchanged lines hidden --- | 127 if (p[0] == '/') /* Skip leading '/'. */ 128 ++p; 129 for (first = 1;; ++p) { 130 if (p[0] == '\0' || (p[0] == '/' && p[1] == '\0')) 131 break; 132 if (p[0] != '/') 133 continue; 134 *p = '\0'; --- 38 unchanged lines hidden --- |