Author: Stan Eisenstat
Subject: Re: [Cs323] Symlink Clarification
Date: Thursday, 17 Sep 2020, 10:49:26
> Message Posted By: Unknown > > In response to this: > > When I run the staff solution in a directory containing a symbolic link > > that points to itself, I get the error message "stat(NAME_OF_LINK) > > failed". However, doing the same thing with the find command gives an > > ELOOP error: "too many levels symbolic links. > > > > Which error message is actually representing what is going on? > > > Neither message is incorrect: stat(NAME_OF_LINK) does > > fail and the value of ERRNO is ELOOP. > > Would it be accepted to print no errors? No. The point of the posting was that the wording of the error message was irrelevant. --Stan-PREV INDEX NEXT