comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: Ada.Directories
Date: Fri, 16 Nov 2007 21:35:30 +0100
Date: 2007-11-16T21:35:30+01:00	[thread overview]
Message-ID: <1408892.GEVvfCecVj@linux1.krischik.com> (raw)
In-Reply-To: 2RIj24Mk3Qk$@eisner.encompasserve.org

Larry Kilgallen wrote:

> In article <1589560.JmWJu6PyXJ@linux1.krischik.com>, Martin Krischik
> <krischik@users.sourceforge.net> writes:
>> Dmitry A. Kazakov wrote:
> 
>>> No, I still haven't got it. But because we don't have a workable
>>> definition of hard link, it just makes no sense to me to discuss it. And
>>> even if we had, it were totally irrelevant to the issue of
>>> Ada.Directories.
>> 
>> Sure we have. Each file is linked at least once and deleted if not.
>> 
>> I thought the discussion if about when a user is allowed to link / unlink
>> what kind of file.
>> 
>> And that is simple - you are not allowed to link or unlink directories.
>> rm is a high level command - try the low level "unlink" command and you
>> will see that it won't unlink any directory. And on the other hand ln
>> won't create links for directories. At least not on any unix I have come
>> across.
> 
> But the title of this topic is not restricted to Unix.
> 
> On VMS you can certainly apply SET FILE/ENTER and SET FILE/REMOVE to
> a directory.

Indeed - but then VMS does not have that silly "." and ".." in any
directory. Also GNU ln has:


  -d, -F, --directory          dem Super-User den Versuch erlauben, harte
                                 Verknï¿œpfungen fï¿œr Verzeichnisse anzulegen
                                 (Bem.: Schlï¿œgt vermutlich dennoch fehl
wegen
                                 Systembeschrï¿œnkungen, auch fï¿œr Super-User.)

Sorry, try again:

 -d, -F, --directory         allow the superuser to attempt to hard link
                                directories (note: will probably fail due to
                                system restrictions, even for the superuser)

but I have never found a unix where it worked.

Martin
-- 
mailto://krischik@users.sourceforge.net
Ada programming at: http://ada.krischik.com



  reply	other threads:[~2007-11-16 20:35 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-20  9:21 Ada.Directories Dmitry A. Kazakov
2007-10-20 18:43 ` Ada.Directories anon
2007-10-20 19:40   ` Ada.Directories Dmitry A. Kazakov
2007-10-20 20:35     ` Ada.Directories Maciej Sobczak
2007-10-21  7:40       ` Ada.Directories Dmitry A. Kazakov
2007-10-21 13:05         ` Ada.Directories Jacob Sparre Andersen
2007-10-21 13:26           ` Ada.Directories Dmitry A. Kazakov
2007-10-21 15:29             ` Ada.Directories Markus E L
2007-10-21 15:38             ` Ada.Directories Jacob Sparre Andersen
2007-10-21 17:19             ` Ada.Directories Martin Krischik
2007-10-21 18:52               ` Ada.Directories Dmitry A. Kazakov
2007-10-21 20:32                 ` Ada.Directories Markus E L
2007-10-21 23:52         ` Ada.Directories Robert A Duff
2007-10-22 11:08         ` Ada.Directories Harald Korneliussen
2007-11-15 11:44           ` Ada.Directories Markus E L
2007-11-16 13:27             ` Ada.Directories Dmitry A. Kazakov
2007-11-16 16:48               ` Ada.Directories Martin Krischik
2007-11-16 18:47                 ` Ada.Directories Larry Kilgallen
2007-11-16 20:35                   ` Martin Krischik [this message]
2007-11-16 19:00                 ` Ada.Directories Dmitry A. Kazakov
2007-10-21  1:25     ` Ada.Directories anon
2007-10-20 22:36   ` Ada.Directories Larry Kilgallen
2007-10-22 18:56 ` Ada.Directories Adam Beneschan
2007-10-23  9:04   ` Ada.Directories Peter Hermann
2007-10-23 12:07     ` Ada.Directories Larry Kilgallen
2007-10-23 13:01       ` Ada.Directories Peter Hermann
2007-10-23 16:08       ` Ada.Directories Robert A Duff
2007-10-23 17:11         ` Ada.Directories Larry Kilgallen
2007-10-24  0:55   ` Ada.Directories Brian May
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox