bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug#107826: can not create file through a dangling symlink


From: Roland McGrath
Subject: Bug#107826: can not create file through a dangling symlink
Date: Fri, 17 Aug 2001 16:02:08 -0400 (EDT)

> On Mon, Aug 06, 2001 at 05:23:35PM -0400, Roland McGrath wrote:
> > This behavior is implemented explicitly in libdiskfs/dir-lookup.c line 374:
> > 
> >            /* Symlinks to nonexistent files aren't allowed to cause
> >            creation, so clear the flag here. */
> >            create = 0;
> > 
> > Try removing that line and see if everything works right.
> 
> dir-lookup.c:121:diskfs_S_dir_lookup: Assertion (!ds) failed.

Hmm, try just replacing:

      assert (!ds);

with:

       if (!ds)
           ds = alloca (diskfs_dirstat_size);

as well as removing the create=0 line.  That will probably do it.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]