From owner-freebsd-fs Sat Jun 24 20:55:24 2000 Delivered-To: freebsd-fs@freebsd.org Received: from racine.cybercable.fr (racine.cybercable.fr [212.198.0.201]) by hub.freebsd.org (Postfix) with SMTP id 986DF37B6D7 for ; Sat, 24 Jun 2000 20:55:17 -0700 (PDT) (envelope-from root@gits.dyndns.org) Received: (qmail 8168491 invoked from network); 25 Jun 2000 03:53:50 -0000 Received: from r224m65.cybercable.tm.fr (HELO gits.dyndns.org) ([195.132.224.65]) (envelope-sender ) by racine.cybercable.fr (qmail-ldap-1.03) with SMTP for ; 25 Jun 2000 03:53:50 -0000 Received: (from root@localhost) by gits.dyndns.org (8.9.3/8.9.3) id FAA54969; Sun, 25 Jun 2000 05:53:48 +0200 (CEST) (envelope-from root) Posted-Date: Sun, 25 Jun 2000 05:53:48 +0200 (CEST) To: fs@FreeBSD.ORG Cc: hacker@FreeBSD.ORG Subject: strange symlink behaviour if / terminated Reply-To: clefevre@citeweb.net X-Face: V|+c;4!|B?E%BE^{E6);aI.[<97Zd*>^#%Y5Cxv;%Y[PT-LW3;A:fRrJ8+^k"e7@+30g0YD0*^^3jgyShN7o?a]C la*Zv'5NA,=963bM%J^o]C From: Cyrille Lefevre Date: 25 Jun 2000 05:53:45 +0200 Message-ID: Lines: 45 X-Mailer: Gnus v5.6.45/XEmacs 21.1 - "Canyonlands" Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org preliminaries : # mkdir -p /path/name /path/to # touch /path/name/file # ln -s /path/name /path/to/symlink # mv /path/to/symlink/ /other/location ^ note the terminating slash. move the target of the symlink instead of the symlink itself. same results w/ rm -r and cp -r. slightly different results w/ rm and cp. # rm /path/to/symlink/ rm: /path/to/symlink/: is a directory # cp /path/to/symlink/ /other/location cp: /path/to/symlink/ is a directory (not copied). # rmdir -p /path/to/symlink/ remove the symlink itself instead of do nothing, such as in : # rmdir -p /path/to/symlink rmdir: /path/to/symlink: Not a directory also, strange output from rmdir -p : # mkdir -p /path/name # rmdir -p /path/name rmdir: : No such file or directory # mkdir -p /path/name/ # rmdir -p /path/name/ rmdir: /path/name: No such file or directory I don't have done these tests under some other OSes (HP-UX, Solaris, IRIX) yet, but I'm sure that they do nothing or they work on symlink itself instead of the target. Cyrille. -- home:mailto:clefevre@no-spam.citeweb.net Supprimer "no-spam." pour me repondre. work:mailto:Cyrille.Lefevre@no-spam.edf.fr Remove "no-spam." to answer me back. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message