diff options
| author | Leo Prikler <leo.prikler@student.tugraz.at> | 2021-01-14 13:58:00 +0100 |
|---|---|---|
| committer | Leo Prikler <leo.prikler@student.tugraz.at> | 2021-01-20 09:04:59 +0100 |
| commit | 6c5112dbb32c217abf09ff8ff9bf8c47d0aea651 (patch) | |
| tree | a7b2ebc404d6ee3548d4dc6d1fe42a5e570a0f34 /gnu/system/shadow.scm | |
| parent | 239af11a69a588f109d1dcd195f9abe9940cce8c (diff) | |
services: Do not warn, when duplicate users are eq?.
* gnu/system/shadow.scm (account-activation): Delete duplicate (eq?) users
and groups before transforming them to specs and asserting, that names are
unique.
Diffstat (limited to 'gnu/system/shadow.scm')
| -rw-r--r-- | gnu/system/shadow.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/system/shadow.scm b/gnu/system/shadow.scm index 0538fb1a240..7c57222716f 100644 --- a/gnu/system/shadow.scm +++ b/gnu/system/shadow.scm | |||
| @@ -321,13 +321,13 @@ of user '~a' is undeclared") | |||
| 321 | <user-group> objects. Raise an error if a user account refers to a undefined | 321 | <user-group> objects. Raise an error if a user account refers to a undefined |
| 322 | group." | 322 | group." |
| 323 | (define accounts | 323 | (define accounts |
| 324 | (filter user-account? accounts+groups)) | 324 | (delete-duplicates (filter user-account? accounts+groups) eq?)) |
| 325 | 325 | ||
| 326 | (define user-specs | 326 | (define user-specs |
| 327 | (map user-account->gexp accounts)) | 327 | (map user-account->gexp accounts)) |
| 328 | 328 | ||
| 329 | (define groups | 329 | (define groups |
| 330 | (filter user-group? accounts+groups)) | 330 | (delete-duplicates (filter user-group? accounts+groups) eq?)) |
| 331 | 331 | ||
| 332 | (define group-specs | 332 | (define group-specs |
| 333 | (map user-group->gexp groups)) | 333 | (map user-group->gexp groups)) |
