2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 09:57:41 +00:00

Remove pointless subshells in targets that simply change the directory

and execute a command.  The command is already run in a shell so
there is no need to execute a subshell in this case.
This commit is contained in:
Todd C. Miller 2017-07-12 05:45:46 -06:00
parent a7759b6261
commit e70a953fb4
11 changed files with 31 additions and 31 deletions

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2010-2015 Todd C. Miller <Todd.Miller@courtesan.com>
# Copyright (c) 2010-2015, 2017 Todd C. Miller <Todd.Miller@courtesan.com>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
@ -162,7 +162,7 @@ uninstall-nls:
done
siglist.c signame.c:
(cd lib/util && exec $(MAKE) $@)
cd lib/util && exec $(MAKE) $@
depend: siglist.c signame.c
$(top_srcdir)/mkdep.pl --builddir=`pwd` --srcdir=$(top_srcdir) \

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2010-2015 Todd C. Miller <Todd.Miller@courtesan.com>
# Copyright (c) 2010-2015, 2017 Todd C. Miller <Todd.Miller@courtesan.com>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
@ -104,7 +104,7 @@ lint: all
fi
Makefile: $(srcdir)/Makefile.in
(cd $(top_builddir) && ./config.status --file doc/Makefile)
cd $(top_builddir) && ./config.status --file doc/Makefile
.SUFFIXES: .man
@ -155,10 +155,10 @@ $(srcdir)/visudo.man.in: $(srcdir)/visudo.mdoc.in
fi
$(mansrcdir)/visudo.man: $(top_builddir)/config.status $(srcdir)/visudo.man.in
(cd $(top_builddir) && $(SHELL) config.status --file=doc/$@)
cd $(top_builddir) && $(SHELL) config.status --file=doc/$@
$(mansrcdir)/visudo.mdoc: $(top_builddir)/config.status $(srcdir)/visudo.mdoc.in
(cd $(top_builddir) && $(SHELL) config.status --file=doc/$@)
cd $(top_builddir) && $(SHELL) config.status --file=doc/$@
$(srcdir)/visudo.cat: varsub $(srcdir)/visudo.mdoc.in
@if [ -n "$(DEVEL)" ]; then \
@ -178,10 +178,10 @@ $(srcdir)/sudo.conf.man.in: $(srcdir)/sudo.conf.mdoc.in
fi
$(mansrcdir)/sudo.conf.man: $(top_builddir)/config.status $(srcdir)/sudo.conf.man.in
(cd $(top_builddir) && $(SHELL) config.status --file=doc/$@)
cd $(top_builddir) && $(SHELL) config.status --file=doc/$@
$(mansrcdir)/sudo.conf.mdoc: $(top_builddir)/config.status $(srcdir)/sudo.conf.mdoc.in
(cd $(top_builddir) && $(SHELL) config.status --file=doc/$@)
cd $(top_builddir) && $(SHELL) config.status --file=doc/$@
$(srcdir)/sudo.conf.cat: varsub $(srcdir)/sudo.conf.mdoc.in
@if [ -n "$(DEVEL)" ]; then \
@ -230,10 +230,10 @@ $(srcdir)/sudoers.ldap.man.in: $(srcdir)/sudoers.ldap.mdoc.in
fi
$(mansrcdir)/sudoers.ldap.man: $(top_builddir)/config.status $(srcdir)/sudoers.ldap.man.in
(cd $(top_builddir) && $(SHELL) config.status --file=doc/$@)
cd $(top_builddir) && $(SHELL) config.status --file=doc/$@
$(mansrcdir)/sudoers.ldap.mdoc: $(top_builddir)/config.status $(srcdir)/sudoers.ldap.mdoc.in
(cd $(top_builddir) && $(SHELL) config.status --file=doc/$@)
cd $(top_builddir) && $(SHELL) config.status --file=doc/$@
$(srcdir)/sudoers.ldap.cat: varsub $(srcdir)/sudoers.ldap.mdoc.in
@if [ -n "$(DEVEL)" ]; then \
@ -253,10 +253,10 @@ $(srcdir)/sudoreplay.man.in: $(srcdir)/sudoreplay.mdoc.in
fi
$(mansrcdir)/sudoreplay.man: $(top_builddir)/config.status $(srcdir)/sudoreplay.man.in
(cd $(top_builddir) && $(SHELL) config.status --file=doc/$@)
cd $(top_builddir) && $(SHELL) config.status --file=doc/$@
$(mansrcdir)/sudoreplay.mdoc: $(top_builddir)/config.status $(srcdir)/sudoreplay.mdoc.in
(cd $(top_builddir) && $(SHELL) config.status --file=doc/$@)
cd $(top_builddir) && $(SHELL) config.status --file=doc/$@
$(srcdir)/sudoreplay.cat: varsub $(srcdir)/sudoreplay.mdoc.in
@if [ -n "$(DEVEL)" ]; then \
@ -276,10 +276,10 @@ $(srcdir)/sudo_plugin.man.in: $(srcdir)/sudo_plugin.mdoc.in
fi
$(mansrcdir)/sudo_plugin.man: $(top_builddir)/config.status $(srcdir)/sudo_plugin.man.in
(cd $(top_builddir) && $(SHELL) config.status --file=doc/$@)
cd $(top_builddir) && $(SHELL) config.status --file=doc/$@
$(mansrcdir)/sudo_plugin.mdoc: $(top_builddir)/config.status $(srcdir)/sudo_plugin.mdoc.in
(cd $(top_builddir) && $(SHELL) config.status --file=doc/$@)
cd $(top_builddir) && $(SHELL) config.status --file=doc/$@
$(srcdir)/sudo_plugin.cat: varsub $(srcdir)/sudo_plugin.mdoc.in
@if [ -n "$(DEVEL)" ]; then \

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2014 Todd C. Miller <Todd.Miller@courtesan.com>
# Copyright (c) 2014, 2017 Todd C. Miller <Todd.Miller@courtesan.com>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
@ -56,7 +56,7 @@ PACKAGE_TARNAME = @PACKAGE_TARNAME@
all: $(EXAMPLES)
Makefile: $(srcdir)/Makefile.in
(cd $(top_builddir) && ./config.status --file examples/Makefile)
cd $(top_builddir) && ./config.status --file examples/Makefile
pre-install:

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2011-2014 Todd C. Miller <Todd.Miller@courtesan.com>
# Copyright (c) 2011-2015, 2017 Todd C. Miller <Todd.Miller@courtesan.com>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
@ -50,7 +50,7 @@ SHELL = @SHELL@
all:
Makefile: $(srcdir)/Makefile.in
(cd $(top_builddir) && ./config.status --file include/Makefile)
cd $(top_builddir) && ./config.status --file include/Makefile
.SUFFIXES: .h

View File

@ -139,7 +139,7 @@ VSYSLOG_TEST_OBJS = vsyslog_test.lo vsyslog.lo
all: libsudo_util.la
Makefile: $(srcdir)/Makefile.in
(cd $(top_builddir) && ./config.status --file lib/util/Makefile)
cd $(top_builddir) && ./config.status --file lib/util/Makefile
.SUFFIXES: .c .h .lo

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2011-2014 Todd C. Miller <Todd.Miller@courtesan.com>
# Copyright (c) 2011-2017 Todd C. Miller <Todd.Miller@courtesan.com>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
@ -95,7 +95,7 @@ LTOBJS = adler32.lo compress.lo crc32.lo deflate.lo gzclose.lo gzlib.lo \
all: libsudo_z.la
Makefile: $(srcdir)/Makefile.in
(cd $(top_builddir) && ./config.status --file lib/zlib/Makefile)
cd $(top_builddir) && ./config.status --file lib/zlib/Makefile
.SUFFIXES: .c .h .lo

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2010-2014 Todd C. Miller <Todd.Miller@courtesan.com>
# Copyright (c) 2010-2017 Todd C. Miller <Todd.Miller@courtesan.com>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
@ -107,7 +107,7 @@ VERSION = @PACKAGE_VERSION@
all: group_file.la
Makefile: $(srcdir)/Makefile.in
(cd $(top_builddir) && ./config.status --file plugins/group_file/Makefile)
cd $(top_builddir) && ./config.status --file plugins/group_file/Makefile
.SUFFIXES: .o .c .h .lo

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2011-2014 Todd C. Miller <Todd.Miller@courtesan.com>
# Copyright (c) 2011-2017 Todd C. Miller <Todd.Miller@courtesan.com>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
@ -106,7 +106,7 @@ VERSION = @PACKAGE_VERSION@
all: sample_plugin.la
Makefile: $(srcdir)/Makefile.in
(cd $(top_builddir) && ./config.status --file plugins/sample/Makefile)
cd $(top_builddir) && ./config.status --file plugins/sample/Makefile
.SUFFIXES: .o .c .h .lo

View File

@ -220,7 +220,7 @@ $(shlib_opt): $(shlib_exp)
@true
Makefile: $(srcdir)/Makefile.in
(cd $(top_builddir) && ./config.status --file plugins/sudoers/Makefile)
cd $(top_builddir) && ./config.status --file plugins/sudoers/Makefile
libparsesudoers.la: $(LIBPARSESUDOERS_OBJS)
$(LIBTOOL) $(LTFLAGS) --mode=link $(CC) -o $@ $(LIBPARSESUDOERS_OBJS) -no-install
@ -316,7 +316,7 @@ $(devdir)/def_data.c $(devdir)/def_data.h: $(srcdir)/def_data.in
fi
sudoers: $(srcdir)/sudoers.in
(cd $(top_builddir) && $(SHELL) config.status --file=plugins/sudoers/$@)
cd $(top_builddir) && $(SHELL) config.status --file=plugins/sudoers/$@
pre-install:
@if test X"$(cross_compiling)" != X"yes" -a -r $(DESTDIR)$(sudoersdir)/sudoers; then \

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2011-2014 Todd C. Miller <Todd.Miller@courtesan.com>
# Copyright (c) 2011-2017 Todd C. Miller <Todd.Miller@courtesan.com>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
@ -107,7 +107,7 @@ VERSION = @PACKAGE_VERSION@
all: system_group.la
Makefile: $(srcdir)/Makefile.in
(cd $(top_builddir) && ./config.status --file plugins/system_group/Makefile)
cd $(top_builddir) && ./config.status --file plugins/system_group/Makefile
.SUFFIXES: .o .c .h .lo

View File

@ -132,10 +132,10 @@ VERSION = @PACKAGE_VERSION@
all: $(PROGS)
Makefile: $(srcdir)/Makefile.in
(cd $(top_builddir) && ./config.status --file src/Makefile)
cd $(top_builddir) && ./config.status --file src/Makefile
./sudo_usage.h: $(srcdir)/sudo_usage.h.in
(cd $(top_builddir) && ./config.status --file src/sudo_usage.h)
cd $(top_builddir) && ./config.status --file src/sudo_usage.h
.SUFFIXES: .c .h .lo .o