Github messages for voidlinux
 help / color / mirror / Atom feed
From: loreb <loreb@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [ISSUE] vipw/vigr displays y/n question only *after* receiving answer
Date: Fri, 22 Oct 2021 14:34:30 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-33699@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 925 bytes --]

New issue by loreb on void-packages repository

https://github.com/void-linux/void-packages/issues/33699

Description:
<!-- Don't request update of package. We have a script for that. https://alpha.de.repo.voidlinux.org/void-updates/void-updates.txt . However, a quality pull request may help. -->
### System

* xuname:  
  Void 5.13.19_1 x86_64-musl GenuineIntel uptodate rFF
* package:  
  util-linux-2.37.2_1

### Expected behavior
The program prints "Would you like to edit (filename) now [y/n]? ", I see the question and reply

### Actual behavior
The program shows nothing, I type "y" and *then* it prints the question - there should be a `fflush(stdout)` between printf and fgets in login-utils/vipw.c:354, or to be even safer set stdout to unbuffered right on program startup.

### Steps to reproduce the behavior
as root, run vipw or vigr on a musl system using /etc/shadow, modify anything and see


             reply	other threads:[~2021-10-22 12:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-22 12:34 loreb [this message]
2021-10-22 13:50 ` ericonr
2021-10-22 14:47 ` loreb
2021-10-22 17:32 ` ericonr
2021-10-22 18:17 ` loreb
2021-10-24 16:05 ` ericonr
2021-10-25 11:15 ` loreb
2021-10-27  0:19 ` [ISSUE] [CLOSED] " sgn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-33699@inbox.vuxu.org \
    --to=loreb@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).