Advertisement
Guest User

Untitled

a guest
May 28th, 2016
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. /* Make sure that the object is a directory */
  2. if (!S_ISDIR(vp->v_mode)) {
  3. r = ENOTDIR;
  4. } else if ((r = forbidden(fp, vp, W_BIT|X_BIT)) == OK) {
  5. r = req_mkdir(vp->v_fs_e, vp->v_inode_nr, fullpath, fp->fp_effuid,
  6. fp->fp_effgid, bits);
  7. printf("New dir -> %s %o",fullpath,dirmode);
  8. }
  9.  
  10. /* Make sure that the object is a directory */
  11. if (!S_ISDIR(vp->v_mode)) {
  12. r = ENOTDIR;
  13. } else if ((r = forbidden(fp, vp, W_BIT|X_BIT)) == OK) {
  14. r = req_mkdir(vp->v_fs_e, vp->v_inode_nr, fullpath, fp->fp_effuid,
  15. fp->fp_effgid, bits);
  16. if (r == OK) {
  17. printf("New dir -> %s %on", fullpath, dirmode);
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement