Remove unnecessary sudo_gettext.h include and add missing const.
This commit is contained in:
@@ -916,13 +916,13 @@ gettime.plog: gettime.i
|
|||||||
rm -f $@; pvs-studio --cfg $(PVS_CFG) --sourcetree-root $(top_srcdir) --skip-cl-exe yes --source-file $(srcdir)/gettime.c --i-file $< --output-file $@
|
rm -f $@; pvs-studio --cfg $(PVS_CFG) --sourcetree-root $(top_srcdir) --skip-cl-exe yes --source-file $(srcdir)/gettime.c --i-file $< --output-file $@
|
||||||
getusershell.lo: $(srcdir)/getusershell.c $(incdir)/compat/stdbool.h \
|
getusershell.lo: $(srcdir)/getusershell.c $(incdir)/compat/stdbool.h \
|
||||||
$(incdir)/sudo_compat.h $(incdir)/sudo_debug.h \
|
$(incdir)/sudo_compat.h $(incdir)/sudo_debug.h \
|
||||||
$(incdir)/sudo_gettext.h $(incdir)/sudo_queue.h \
|
$(incdir)/sudo_queue.h $(incdir)/sudo_util.h \
|
||||||
$(incdir)/sudo_util.h $(top_builddir)/config.h
|
$(top_builddir)/config.h
|
||||||
$(LIBTOOL) $(LTFLAGS) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(ASAN_CFLAGS) $(PIE_CFLAGS) $(HARDENING_CFLAGS) $(srcdir)/getusershell.c
|
$(LIBTOOL) $(LTFLAGS) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(ASAN_CFLAGS) $(PIE_CFLAGS) $(HARDENING_CFLAGS) $(srcdir)/getusershell.c
|
||||||
getusershell.i: $(srcdir)/getusershell.c $(incdir)/compat/stdbool.h \
|
getusershell.i: $(srcdir)/getusershell.c $(incdir)/compat/stdbool.h \
|
||||||
$(incdir)/sudo_compat.h $(incdir)/sudo_debug.h \
|
$(incdir)/sudo_compat.h $(incdir)/sudo_debug.h \
|
||||||
$(incdir)/sudo_gettext.h $(incdir)/sudo_queue.h \
|
$(incdir)/sudo_queue.h $(incdir)/sudo_util.h \
|
||||||
$(incdir)/sudo_util.h $(top_builddir)/config.h
|
$(top_builddir)/config.h
|
||||||
$(CC) -E -o $@ $(CPPFLAGS) $<
|
$(CC) -E -o $@ $(CPPFLAGS) $<
|
||||||
getusershell.plog: getusershell.i
|
getusershell.plog: getusershell.i
|
||||||
rm -f $@; pvs-studio --cfg $(PVS_CFG) --sourcetree-root $(top_srcdir) --skip-cl-exe yes --source-file $(srcdir)/getusershell.c --i-file $< --output-file $@
|
rm -f $@; pvs-studio --cfg $(PVS_CFG) --sourcetree-root $(top_srcdir) --skip-cl-exe yes --source-file $(srcdir)/getusershell.c --i-file $< --output-file $@
|
||||||
|
@@ -29,11 +29,10 @@
|
|||||||
|
|
||||||
#include "sudo_compat.h"
|
#include "sudo_compat.h"
|
||||||
#include "sudo_debug.h"
|
#include "sudo_debug.h"
|
||||||
#include "sudo_gettext.h"
|
|
||||||
#include "sudo_util.h"
|
#include "sudo_util.h"
|
||||||
|
|
||||||
static char **allowed_shells, **current_shell;
|
static char **allowed_shells, * const *current_shell;
|
||||||
static char *default_shells[] = {
|
static const char *default_shells[] = {
|
||||||
"/bin/sh",
|
"/bin/sh",
|
||||||
"/bin/ksh",
|
"/bin/ksh",
|
||||||
"/bin/ksh93",
|
"/bin/ksh93",
|
||||||
|
Reference in New Issue
Block a user