Skip to content

Commit 89e6c33

Browse files
committed
Fixing linting issue and that the user singular does not match GNU implementation
1 parent 96336d4 commit 89e6c33

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

src/uu/users/src/users.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ fn get_long_usage() -> String {
3636
}
3737

3838
#[inline]
39+
#[cfg(not(target_os = "openbsd"))]
3940
fn pid_is_alive(pid: i32) -> bool {
4041
if pid <= 0 {
4142
return true;

src/uu/who/locales/en-US.ftl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ who-help-users = list users logged in
2626
who-help-mesg = add user's message status as +, - or ?
2727
2828
# Output messages
29-
who-user-count = # { $count ->
30-
[one] user={ $count }
31-
*[other] users={ $count }
32-
}
29+
who-user-count = # users={ $count }
3330
3431
# Idle time indicators
3532
who-idle-current = .

src/uu/who/locales/fr-FR.ftl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@ who-help-users = liste les utilisateurs connectés
2525
who-help-mesg = ajoute le statut de message de l'utilisateur comme +, - ou ?
2626
2727
# Output messages
28-
who-user-count = # { $count ->
29-
[one] utilisateur={ $count }
30-
*[other] utilisateurs={ $count }
31-
}
28+
who-user-count = # utilisateurs={ $count }
3229
3330
# Idle time indicators
3431
who-idle-old = anc.

src/uu/who/src/platform/unix.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ fn time_string(ut: &UtmpxRecord) -> String {
181181
}
182182

183183
#[inline]
184+
#[cfg(not(target_os = "openbsd"))]
184185
fn pid_is_alive(pid: i32) -> bool {
185186
if pid <= 0 {
186187
return true;

0 commit comments

Comments
 (0)