URL:
  <http://savannah.gnu.org/bugs/?19973>

                 Summary: Setup for samefile-p-brokenlink.exp fails
                 Project: findutils
            Submitted by: jay
            Submitted on: Saturday 05/26/2007 at 13:02
                Category: find
                Severity: 2 - Minor
              Item Group: None
                  Status: Need Info
                 Privacy: Public
             Assigned to: jay
         Originator Name: Nelson H. F. Beebe
        Originator Email: [EMAIL PROTECTED]
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.3.6
           Fixed Release: None

    _______________________________________________________

Details:

When the test setup phase of 
find/testsuite/find.gnu/samefile-p-brokenlink.exp is carried out on OpenBSD
3.9 and on Solaris 10, it fails:

Running
/local/build/bare/findutils-4.3.6/find/testsuite/find.gnu/samefile-same.exp
...
ERROR: tcl error sourcing
/local/build/bare/findutils-4.3.6/find/testsuite/find.gnu/samefile-p-brokenlink.exp.
ERROR: ln: accessing `tmp/broken': No such file or directory
    while executing
"exec ln    tmp/broken tmp/blink"
    (file
"/local/build/bare/findutils-4.3.6/find/testsuite/find.gnu/samefile-p-brokenlink.exp"
line 8)
    invoked from within
"source
/local/build/bare/findutils-4.3.6/find/testsuite/find.gnu/samefile-p-brokenlink.exp"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 source
/local/build/bare/findutils-4.3.6/find/testsuite/find.gnu/samefile-p-brokenlink.exp"
    invoked from within
"catch "uplevel #0 source $test_file_name""



I am not sure yet what causes this, but I suspect that on this system it is
not possible to create a hard link to a broken symlink, or perhaps it is
possible but it requires the use of an option that we are not using.    

A useful diagnostic would be to attempt these two similar but different shell
commands on the two systems under consideration:-

# 1
rm -rf broken link; 
ln -s nosuchfile broken; 
ln -n broken link; 
ls -il broken link

# 2
rm -rf broken link; 
ln -s nosuchfile broken; 
ln   broken link; 
ls -il broken link

#1 corresponds to what we do now, and #2 passes an -n flag to ln.





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?19973>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-findutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-findutils

Reply via email to