Skip to contentSkip to conversation

Makefile.am: allow mount.nfs to be writeable by owner

PATCH In review Scott Mayhew 2 participants 2 messages Nov 6, 2024 – Nov 11, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Makefile.am: allow mount.nfs to be writeable by owner

On Red Hat-based systems, the debug symbol files are built with a .gdb_index section to speed up gdb initialization. The gdb-add-index program calls objcopy to merge the index file into the object file. That fails if the object file isn't writeable by the owner.

---
 utils/mount/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
utils/mount/Makefile.am +1 -1
index 5ff1148c..83a8ee1c 100644
@@ -50,7 +50,7 @@ install-exec-hook:
 	  ln -sf mount.nfs mount.nfs4 && \
 	  ln -sf mount.nfs umount.nfs && \
 	  ln -sf mount.nfs umount.nfs4 && \
-	  chmod 4511 mount.nfs )
+	  chmod 4711 mount.nfs )
 uninstall-hook:
 	(cd $(DESTDIR)$(sbindir) && \
 	    rm -f mount.nfs4 umount.nfs umount.nfs4)
Signature · 1 line
2.45.2
#1 lore raw
Quoted 6 lines · Scott Mayhew

On Red Hat-based systems, the debug symbol files are built with a .gdb_index section to speed up gdb initialization. The gdb-add-index program calls objcopy to merge the index file into the object file. That fails if the object file isn't writeable by the owner.

Committed... (tag: nfs-utils-2-8-2-rc1)

steved.

Quoted 17 lines
---
  utils/mount/Makefile.am | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
utils/mount/Makefile.am +1 -1
index 5ff1148c..83a8ee1c 100644
@@ -50,7 +50,7 @@ install-exec-hook:
  	  ln -sf mount.nfs mount.nfs4 && \
  	  ln -sf mount.nfs umount.nfs && \
  	  ln -sf mount.nfs umount.nfs4 && \
-	  chmod 4511 mount.nfs )
+	  chmod 4711 mount.nfs )
  uninstall-hook:
  	(cd $(DESTDIR)$(sbindir) && \
  	    rm -f mount.nfs4 umount.nfs umount.nfs4)