bug-gnulib
[Top][All Lists]
Advanced

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

I am confused about the configure rename managing hardlinks test.


From: John E. Malmberg
Subject: I am confused about the configure rename managing hardlinks test.
Date: Fri, 29 Sep 2017 18:13:50 -0500
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

Hello,

I am confused about the rename managing hardlinks test.

It starts out with conftest.f as an empty file and conftest.fl as a hard link to conftest.f.

Step 1:
    rename ("conftest.f", "conftest.f1")

I would expect after a success, conftest.f would no longer exist, only conftest.f1.

Step 2:
    unlink ("conftest.f1")

Now I would expect confest.f1 to not exist after this.

Step 3 is what confuses me.

   rename("conftest.f", "conftest.f") which is expected to work.

How can this succeed if "conftest.f" was removed in step 1?

Regards,
-John






reply via email to

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