|author||Peter Seebach <email@example.com>||2015-01-14 17:30:03 -0600|
|committer||Peter Seebach <firstname.lastname@example.org>||2015-01-14 17:34:41 -0600|
Make --without-passwd-fallback work
This is derived in significant part from contributions to oe-core by Peter A. Bigot. I reworked the path routine a bit to use an already duplicated string instead of allocating copies of parts of it. The first issue was just that there was a missing antimagic() around some of the path operations. The second is that we wanted to have a way to provide a fallback password file which isn't the host's, but which can be used in the case where the target filesystem hasn't got a password yet, for bootstrapping purposes. (So there's a minimal password file that just has root, basically.) Also, I noticed a design flaw, which is that if you ended up calling pseudo_pwd_lck_open() twice in a row, the second time through, pseudo would first check whether it had a path name for the file (it does), and thus not allocate one, then call the close routine (which frees it and nulls the pointer), then open a new one... and not have a file name, so the next attempt to close it wouldn't unlink the file. This shouldn't ever come up in real code, but it was bugging me. Signed-off-by: Peter Seebach <email@example.com>
Diffstat (limited to 'configure')
1 files changed, 5 insertions, 1 deletions
@@ -2,7 +2,7 @@
# configure, simulation of autoconf script, much simplified
-# Copyright (c) 2008-2013 Wind River Systems, Inc.
+# Copyright (c) 2008-2014 Wind River Systems, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the Lesser GNU General Public License version 2.1 as
@@ -69,6 +69,10 @@ do
--) shift; break ;;
+ if [ "$(cd "$opt_prefix"; pwd)" == "$(pwd)" ]; then
+ echo >&2 "ERROR: Prefix is current directory. That doesn't work."
+ exit 1