Author: Stan Eisenstat
Subject: Re: [Cs323] Symlink clarification
Date: Tuesday, 15 Sep 2020, 17:08:36
> Message Posted By: Unknown > > 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. --Stan-PREV INDEX NEXT