From: Jim Meyering Date: Sun, 26 Mar 2006 12:07:59 +0000 (+0000) Subject: (wipename): Use new last_component, in place of base_name. X-Git-Tag: v6.0~559 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4d9a40b8277d288d6f13317f975f0ee704f11a7;p=thirdparty%2Fcoreutils.git (wipename): Use new last_component, in place of base_name. --- diff --git a/src/shred.c b/src/shred.c index fdcc54d7d4..a86edbb1fe 100644 --- a/src/shred.c +++ b/src/shred.c @@ -1,6 +1,6 @@ /* shred.c - overwrite files and devices to make it harder to recover data - Copyright (C) 1999-2005 Free Software Foundation, Inc. + Copyright (C) 1999-2006 Free Software Foundation, Inc. Copyright (C) 1997, 1998, 1999 Colin Plumb. This program is free software; you can redistribute it and/or modify @@ -1024,7 +1024,7 @@ static bool wipename (char *oldname, char const *qoldname, struct Options const *flags) { char *newname = xstrdup (oldname); - char *base = base_name (newname); + char *base = last_component (newname); size_t len = base_len (base); char *dir = dir_name (newname); char *qdir = xstrdup (quotearg_colon (dir));