lkml.org 
[lkml]   [2001]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Hi!

> The bottom line: rmdir(".") is gone. Replace it with portable equivalent,
> namely
> p = getcwd(pwd, sizeof(pwd));
> if (!p)
> /* handle error - ERANGE or ENOENT */
> rmdir(p);
> Shell equivalent is rmdir `pwd`. Also portable.

...when you are lucky and all directories up to your path are
readable... Which is not always so. With old glibc, it will fail.
Pavel
--
I'm pavel@ucw.cz. "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents at discuss@linmodems.org
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:22    [W:0.091 / U:3.164 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site