[Git][reproducible-builds/disorderfs][debian] 5 commits: Don't attempt to drop groups in multi-user mode when we are not root. (Closes:...

Chris Lamb gitlab at salsa.debian.org
Thu Apr 16 10:23:15 UTC 2020



Chris Lamb pushed to branch debian at Reproducible Builds / disorderfs


Commits:
9e767d62 by Chris Lamb at 2020-04-14T12:59:57+01:00
Don't attempt to drop groups in multi-user mode when we are not root. (Closes: reproducible-builds/disorderfs#1)

- - - - -
8cd5fa10 by Chris Lamb at 2020-04-16T11:18:02+01:00
Update my copyright years.

- - - - -
8ab69faa by Chris Lamb at 2020-04-16T11:19:10+01:00
Release 0.5.9

- - - - -
72474fe9 by Chris Lamb at 2020-04-16T11:19:22+01:00
Merge tag '0.5.9' into debian

Release 0.5.9

* tag '0.5.9':
  Release 0.5.9
  Update my copyright years.
  Don't attempt to drop groups in multi-user mode when we are not root. (Closes: reproducible-builds/disorderfs#1)

- - - - -
b3cf86e2 by Chris Lamb at 2020-04-16T11:22:25+01:00
releasing package disorderfs version 0.5.9-1

- - - - -


2 changed files:

- debian/changelog
- disorderfs.cpp


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,14 @@
+disorderfs (0.5.9-1) unstable; urgency=medium
+
+  [ Chris Lamb ]
+  * Don't attempt to drop groups in multi-user mode when we are not root.
+    (Closes: reproducible-builds/disorderfs#1)
+
+  [ Vagrant Cascadian ]
+  * Update Vcs-Git in debian/control to include the "debian" packaging branch.
+
+ -- Chris Lamb <lamby at debian.org>  Thu, 16 Apr 2020 11:20:27 +0100
+
 disorderfs (0.5.8-2) unstable; urgency=medium
 
   * No change source upload to allow testing migration.


=====================================
disorderfs.cpp
=====================================
@@ -1,6 +1,6 @@
 /*
  * Copyright 2015, 2016 Andrew Ayer <agwa at andrewayer.name>
- * Copyright 2016, 2017 Chris Lamb <lamby at debian.org>
+ * Copyright 2016-2020 Chris Lamb <lamby at debian.org>
  *
  * This file is part of disorderfs.
  *
@@ -43,7 +43,7 @@ extern "C" {
 #include <sys/file.h>
 #include <stddef.h>
 
-#define DISORDERFS_VERSION "0.5.8"
+#define DISORDERFS_VERSION "0.5.9"
 
 namespace {
 	std::vector<std::string>	bare_arguments;
@@ -151,13 +151,13 @@ namespace {
 	struct Guard {
 		Guard ()
 		{
-			if (config.multi_user) {
+			if (config.multi_user && getuid() == 0) {
 				drop_privileges();
 			}
 		}
 		~Guard ()
 		{
-			if (config.multi_user) {
+			if (config.multi_user && getuid() == 0) {
 				restore_privileges();
 			}
 		}



View it on GitLab: https://salsa.debian.org/reproducible-builds/disorderfs/-/compare/bab6d34a08b152df967acd07240741d7aca90b5e...b3cf86e29e0bc5a2b467e1d0022713cfe23743ba

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/disorderfs/-/compare/bab6d34a08b152df967acd07240741d7aca90b5e...b3cf86e29e0bc5a2b467e1d0022713cfe23743ba
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20200416/31f7bcc3/attachment.htm>


More information about the rb-commits mailing list