From 57c6f099f2f5ef5ab8350ec2474d95b3c74e7b48 Mon Sep 17 00:00:00 2001 From: Philip Homburg Date: Wed, 8 Aug 2007 15:27:07 +0000 Subject: [PATCH] Removed old debug code. --- servers/mfs/link.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/servers/mfs/link.c b/servers/mfs/link.c index 82c159d1a..56d96ccb1 100644 --- a/servers/mfs/link.c +++ b/servers/mfs/link.c @@ -830,12 +830,7 @@ printf("fs_rename_s: next_new_superdirp: %d on 0x%x\n", r = EINVAL; break; } - { static int count= 0; - if (++count > 20) - panic(__FILE__, "too deep", NO_NUM); - } } - /*put_inode(new_superdirp);*/ } /* The old or new name must not be . or .. */ @@ -846,14 +841,6 @@ printf("fs_rename_s: next_new_superdirp: %d on 0x%x\n", /* Both parent directories must be on the same device. if (old_dirp->i_dev != new_dirp->i_dev) r = EXDEV; */ -#if 0 - /* Parent dirs must be writable, searchable and on a writable device */ - if ((r1 = forbidden(old_dirp, W_BIT | X_BIT)) != OK || - (r1 = forbidden(new_dirp, W_BIT | X_BIT)) != OK) { - r = r1; - } -#endif - /* Some tests apply only if the new path exists. */ if (new_ip == NIL_INODE) { /* don't rename a file with a file system mounted on it. -- 2.44.0