delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/06/11/08:17:05

Date: Tue, 11 Jun 2002 07:52:55 -0400
Message-Id: <200206111152.g5BBqtq29996@envy.delorie.com>
X-Authentication-Warning: envy.delorie.com: dj set sender to dj AT delorie DOT com using -f
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp-workers AT delorie DOT com
In-reply-to: <3D05B70B.F8A8EE2C@phekda.freeserve.co.uk> (message from Richard
Dawe on Tue, 11 Jun 2002 09:38:35 +0100)
Subject: Re: FSEXT hooks and symlinks
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1020610155657 DOT 25837B-100000 AT is> <1023716516 DOT 31679 DOT 5 DOT camel AT bender DOT falconsoft DOT be> <3D052A8B DOT 9130E7EF AT phekda DOT freeserve DOT co DOT uk> <200206110023 DOT g5B0NmY22830 AT envy DOT delorie DOT com> <3D05B70B DOT F8A8EE2C AT phekda DOT freeserve DOT co DOT uk>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> "If path does not name a directory, remove(path) shall be equivalent to
> unlink(path). 
> If path names a directory, remove(path) shall be equivalent to rmdir(path)."

In the case we're talking about, path names a symlink (which is not a
directory), so it always acts like unlink().

I just verified this on Linux too.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019