From: Philip Homburg Date: Wed, 8 Aug 2007 15:27:07 +0000 (+0000) Subject: Removed old debug code. X-Git-Tag: v3.1.4~333 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/Bv9ARM.ch09.html?a=commitdiff_plain;h=57c6f099f2f5ef5ab8350ec2474d95b3c74e7b48;p=minix.git Removed old debug code. --- 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.