From 171c45bcc2a0a59db27f6bfc142efdd466cdd8bc Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:59:08 +0000 Subject: Correct neuros problem with no source directory Author: jgg Date: 2002-04-24 05:02:40 GMT Correct neuros problem with no source directory --- apt-pkg/contrib/fileutl.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apt-pkg/contrib') diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc index df96a066c..00afc8050 100644 --- a/apt-pkg/contrib/fileutl.cc +++ b/apt-pkg/contrib/fileutl.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: fileutl.cc,v 1.40 2002/04/18 05:08:49 jgg Exp $ +// $Id: fileutl.cc,v 1.41 2002/04/24 05:02:40 jgg Exp $ /* ###################################################################### File Utilities @@ -156,12 +156,12 @@ string flNotDir(string File) /*}}}*/ // flNotFile - Strip the file from the directory name /*{{{*/ // --------------------------------------------------------------------- -/* */ +/* Result ends in a / */ string flNotFile(string File) { string::size_type Res = File.rfind('/'); if (Res == string::npos) - return File; + return "./"; Res++; return string(File,0,Res); } -- cgit v1.2.3