X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=lib%2Funlinkat.c;fp=lib%2Funlinkat.c;h=059f4e561a4f4a10081d0e2ddae35e3e5d5836fe;hb=a8a88eddaa90432e6ec1b8d9d5c9842bc91afd1d;hp=c89bc9c2d9a141feedb6a1004252a7796c5492d7;hpb=20fcfc81ece044b8b0a6768ec6cf47be4e22a2e6;p=debian%2Fgzip diff --git a/lib/unlinkat.c b/lib/unlinkat.c index c89bc9c..059f4e5 100644 --- a/lib/unlinkat.c +++ b/lib/unlinkat.c @@ -1,6 +1,6 @@ /* Work around unlinkat bugs on Solaris 9 and Hurd. - Copyright (C) 2009-2016 Free Software Foundation, Inc. + Copyright (C) 2009-2018 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -13,7 +13,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program. If not, see . */ + along with this program. If not, see . */ /* Written by Eric Blake. */ @@ -98,7 +98,7 @@ rpl_unlinkat (int fd, char const *name, int flag) #else /* !HAVE_UNLINKAT */ /* Replacement for Solaris' function by the same name. - + First, try to simulate it via (unlink|rmdir) ("/proc/self/fd/FD/FILE"). Failing that, simulate it via save_cwd/fchdir/(unlink|rmdir)/restore_cwd. If either the save_cwd or the restore_cwd fails (relatively unlikely),