mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 19:00:07 +00:00
* nscd/connections.c (nscd_init): If database file access be
opened check whether this is due to permission problems and bail in that case.
This commit is contained in:
parent
5627534a81
commit
31d322a214
@ -1,5 +1,9 @@
|
|||||||
2009-01-28 Ulrich Drepper <drepper@redhat.com>
|
2009-01-28 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* nscd/connections.c (nscd_init): If database file access be
|
||||||
|
opened check whether this is due to permission problems and bail
|
||||||
|
in that case.
|
||||||
|
|
||||||
[BZ #9741]
|
[BZ #9741]
|
||||||
* nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
|
* nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
|
||||||
Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
|
Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Inner loops of cache daemon.
|
/* Inner loops of cache daemon.
|
||||||
Copyright (C) 1998-2007, 2008 Free Software Foundation, Inc.
|
Copyright (C) 1998-2007, 2008, 2009 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
|
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
|
||||||
|
|
||||||
@ -647,6 +647,9 @@ cannot create read-only descriptor for \"%s\"; no mmap"),
|
|||||||
if (fd != -1)
|
if (fd != -1)
|
||||||
close (fd);
|
close (fd);
|
||||||
}
|
}
|
||||||
|
else if (errno == EACCES)
|
||||||
|
error (EXIT_FAILURE, 0, _("cannot access '%s'"),
|
||||||
|
dbs[cnt].db_filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dbs[cnt].head == NULL)
|
if (dbs[cnt].head == NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user