]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.4421: some installed files and directories have wrong permissions v8.2.4421
authorBram Moolenaar <Bram@vim.org>
Sat, 19 Feb 2022 13:25:18 +0000 (13:25 +0000)
committerBram Moolenaar <Bram@vim.org>
Sat, 19 Feb 2022 13:25:18 +0000 (13:25 +0000)
Problem:    Some installed files and directories have wrong permissions.
Solution:   Adjust the Makefile and shell to set permissions. (closes #9793)

src/Makefile
src/installman.sh
src/version.c

index 3288c5b4781f3bba80ba1abb29f0d93c4aea5255..0874b0aefbc993e56bf423923570d5b0279e9a9c 100644 (file)
@@ -2140,7 +2140,7 @@ autoconf:
 # without changes.
 # This requires a "vim" executable with the +eval feature.
 cmdidxs: ex_cmds.h
-       vim --clean -N -X --not-a-term -u create_cmdidxs.vim -c quit
+       vim --clean -X --not-a-term -u create_cmdidxs.vim -c quit
 
 # Run vim script to generate the normal/visual mode command lookup table.
 # This only needs to be run when a new normal/visual mode command has been
@@ -2151,7 +2151,7 @@ cmdidxs: ex_cmds.h
 #   - run "make nvcmdidxs" to generate nv_cmdidxs.h
 nvcmdidxs: auto/config.mk nv_cmds.h
        $(CC) -I$(srcdir) $(ALL_CFLAGS) create_nvcmdidxs.c -o create_nvcmdidxs
-       vim --clean -N -X --not-a-term -u create_nvcmdidxs.vim -c quit
+       vim --clean -X --not-a-term -u create_nvcmdidxs.vim -c quit
        -rm -f create_nvcmdidxs
 
 # The normal command to compile a .c file to its .o file.
@@ -2499,8 +2499,8 @@ installrtbase: $(HELPSOURCE)/vim.1 $(DEST_VIM) $(DEST_RT) \
        cd $(DEST_PRINT); chmod $(FILEMOD) *.ps
 # install the colorscheme files
        cd $(COLSOURCE); $(INSTALL_DATA_R) *.vim lists tools README.txt $(DEST_COL)
-       cd $(DEST_COL); chmod $(DIRMOD) tools
-       cd $(DEST_COL); chmod $(HELPMOD) *.vim README.txt tools/*.vim
+       cd $(DEST_COL); chmod $(DIRMOD) lists tools
+       cd $(DEST_COL); chmod $(HELPMOD) *.vim README.txt lists/*.vim tools/*.vim
 # install the syntax files
        cd $(SYNSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_SYN)
        cd $(DEST_SYN); chmod $(HELPMOD) *.vim README.txt
@@ -2519,7 +2519,7 @@ installrtbase: $(HELPSOURCE)/vim.1 $(DEST_VIM) $(DEST_RT) \
        cd $(DEST_PLUG); chmod $(HELPMOD) *.vim README.txt
 # install the ftplugin files
        cd $(FTPLUGSOURCE); $(INSTALL_DATA) *.vim README.txt logtalk.dict $(DEST_FTP)
-       cd $(DEST_FTP); chmod $(HELPMOD) *.vim README.txt
+       cd $(DEST_FTP); chmod $(HELPMOD) *.vim README.txt logtalk.dict
 # install the compiler files
        cd $(COMPSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_COMP)
        cd $(DEST_COMP); chmod $(HELPMOD) *.vim README.txt
@@ -3030,7 +3030,7 @@ pixmaps:
 # Update the synmenu.vim file with the latest Syntax menu.
 # This is only needed when runtime/makemenu.vim was changed.
 menu: ./vim ../runtime/makemenu.vim
-       ./vim -u ../runtime/makemenu.vim
+       ./vim --clean -X --not-a-term -u ../runtime/makemenu.vim
 
 # Start configure from scratch
 scrub scratch:
index 00a33a2954b3044db00d03ce327988790a8f2a61..98bbb281ab0ced0dfe27aa3560eac08699d5e360 100755 (executable)
@@ -40,6 +40,7 @@ if test $what = "install" -o $what = "xxd"; then
    if test ! -d $destdir; then
       echo creating $destdir
       /bin/sh install-sh -c -d $destdir
+      chmod 755 $destdir
    fi
 fi
 
index 709bf7e9906c13c88eb3b95f4a75ef720428cbba..21fefbac4d937d62694cc2fd06a5576128551db8 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4421,
 /**/
     4420,
 /**/