X-Git-Url: http://git.csclub.uwaterloo.ca/?p=kopensolaris-gnu%2Fglibc.git;a=blobdiff_plain;f=hurd%2Fpath-lookup.c;h=20a27c9ae1f4e98114a5ca4fa9efa6be583c4165;hp=cc1245430335406ac3555493df095b01fc1860a4;hb=6ac101d7bffe37ceee7fe765586019ef85887924;hpb=5bc24d065c77f07a0559630cfaaf564fad6aafb2 diff --git a/hurd/path-lookup.c b/hurd/path-lookup.c index cc12454303..20a27c9ae1 100644 --- a/hurd/path-lookup.c +++ b/hurd/path-lookup.c @@ -1,22 +1,22 @@ /* Filename lookup using a search path - - Copyright (C) 1995, 1996 Free Software Foundation, Inc. - + Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. + This file is part of the GNU C Library. Written by Miles Bader - 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 the Free Software Foundation; either version 2, or (at - your option) any later version. + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. + Library General Public License for more details. - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + You should have received a copy of the GNU Library General Public + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ #include #include @@ -80,7 +80,7 @@ file_name_path_scan (const char *file_name, const char *path, /* Lookup FILE_NAME and return the node opened with FLAGS & MODE in result (see hurd_file_name_lookup for details), but a simple filename (without - any directory prefixes) will be consectutively prefixed with the pathnames + any directory prefixes) will be consecutively prefixed with the pathnames in the `:' separated list PATH until one succeeds in a successful lookup. If none succeed, then the first error that wasn't ENOENT is returned, or ENOENT if no other errors were returned. If PREFIXED_NAME is non-NULL,