summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/fileutl.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:59:08 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:59:08 +0000
commit171c45bcc2a0a59db27f6bfc142efdd466cdd8bc (patch)
treee7554f69ae3bf5d1a2a55021aeb1fb5168feb183 /apt-pkg/contrib/fileutl.cc
parentc9aa0f15b7cc32336e257303fcdb64503ed1c6df (diff)
Correct neuros problem with no source directory
Author: jgg Date: 2002-04-24 05:02:40 GMT Correct neuros problem with no source directory
Diffstat (limited to 'apt-pkg/contrib/fileutl.cc')
-rw-r--r--apt-pkg/contrib/fileutl.cc6
1 files changed, 3 insertions, 3 deletions
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);
}