File: usermod-root.patch

package info (click to toggle)
rpm 4.20.1%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 9,832 kB
  • sloc: ansic: 70,093; sh: 1,843; python: 1,037; cpp: 324; makefile: 39
file content (14 lines) | stat: -rw-r--r-- 366 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Author: Daan De Meyer <daan.j.demeyer@gmail.com>
Forwarded: https://github.com/rpm-software-management/rpm/pull/3823
Description: scripts/sysusers: Make sure $ROOT is passed to usermod
--- a/scripts/sysusers.sh
+++ b/scripts/sysusers.sh
@@ -93,7 +93,7 @@
 	fi
 
 	if [[ $expire ]]; then
-	    usermod -e 1 "${user}"
+	    usermod -R "$ROOT" -e 1 "${user}"
 	fi
 }