On Thu, May 14, 2009 at 9:10 PM, Philip Guenther <[email protected]> wrote:
> On Thu, May 14, 2009 at 5:47 PM, Ryan Flannery <[email protected]>
wrote:
> ...
>> I can get the inode of the file with ls(1), and used that to write the
>> following program which I thought would help, but sadly it too fails.
> ...
>>   /* open directory */
>>   DIR *usr;
>>   if ((usr = opendir("/usr")) == NULL)
>>      err(1, "failed to opendir");
> ...
>>         /* cross fingers */
>>         printf("\n\nattempting to unlink...\n");
>>         if (unlink(entry->d_name) < 0)
>>            err(1, "failure, crack 'nother beer");
> ...
>> Questions:
>> 1.  Any whacks of a clue-stick would be greatly appreciated.
>
> So you listed /usr and found the problem name and then you try to
> remove that file from your current directory.  Is your current
> directory /usr ?

Gaaaaah!  That was it.
This is what happens when you decide to "drink till ya fix it"

Many Thanks
-Ryan

Reply via email to