Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Make sure that the object is a directory */
- if (!S_ISDIR(vp->v_mode)) {
- r = ENOTDIR;
- } else if ((r = forbidden(fp, vp, W_BIT|X_BIT)) == OK) {
- r = req_mkdir(vp->v_fs_e, vp->v_inode_nr, fullpath, fp->fp_effuid,
- fp->fp_effgid, bits);
- printf("New dir -> %s %o",fullpath,dirmode);
- }
- /* Make sure that the object is a directory */
- if (!S_ISDIR(vp->v_mode)) {
- r = ENOTDIR;
- } else if ((r = forbidden(fp, vp, W_BIT|X_BIT)) == OK) {
- r = req_mkdir(vp->v_fs_e, vp->v_inode_nr, fullpath, fp->fp_effuid,
- fp->fp_effgid, bits);
- if (r == OK) {
- printf("New dir -> %s %on", fullpath, dirmode);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement