All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] deb-pkg: Fix packaging with non-standard umask
@ 2012-05-11 14:49 Petr Baudis
  0 siblings, 0 replies; 2+ messages in thread
From: Petr Baudis @ 2012-05-11 14:49 UTC (permalink / raw)
  To: linux-kernel

When building with a different umask than 022 (e.g. umask 027),
the packaged files would carry the non-standard rights over,
wreaking havoc especially in case of linux-libc-dev.

This patch fixes the problem for sane umasks.

Signed-off-by: Petr Baudis <pasky@ucw.cz>

--- scripts/package/builddeb~	2012-03-01 02:28:15.571721530 +0100
+++ scripts/package/builddeb	2012-03-15 20:04:49.497938508 +0100
@@ -23,7 +23,7 @@
 
 	# Fix ownership and permissions
 	chown -R root:root "$pdir"
-	chmod -R go-w "$pdir"
+	chmod -R u+rwX,go+rX-w "$pdir"
 
 	# Attempt to find the correct Debian architecture
 	local forcearch="" debarch=""

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] deb-pkg: Fix packaging with non-standard umask
@ 2012-03-16  2:59 Petr Baudis
  0 siblings, 0 replies; 2+ messages in thread
From: Petr Baudis @ 2012-03-16  2:59 UTC (permalink / raw)
  To: linux-kernel

When building with a different umask than 022 (e.g. umask 027),
the packaged files would carry the non-standard rights over,
wreaking havoc especially in case of linux-libc-dev.

This patch fixes the problem for sane umasks.

Signed-off-by: Petr Baudis <pasky@ucw.cz>

--- scripts/package/builddeb~	2012-03-01 02:28:15.571721530 +0100
+++ scripts/package/builddeb	2012-03-15 20:04:49.497938508 +0100
@@ -23,7 +23,7 @@
 
 	# Fix ownership and permissions
 	chown -R root:root "$pdir"
-	chmod -R go-w "$pdir"
+	chmod -R u+rwX,go+rX-w "$pdir"
 
 	# Attempt to find the correct Debian architecture
 	local forcearch="" debarch=""


-- 
				Petr "Pasky" Baudis
	Smart data structures and dumb code works a lot better
	than the other way around.  -- Eric S. Raymond

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-05-11 15:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-11 14:49 [PATCH] deb-pkg: Fix packaging with non-standard umask Petr Baudis
  -- strict thread matches above, loose matches on Subject: below --
2012-03-16  2:59 Petr Baudis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.