Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP1:GA
tcsh.19070
tcsh-6.20-rmstar.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File tcsh-6.20-rmstar.patch of Package tcsh.19070
From 766c095e4c8c57aea196a1325e395f5d6162cdce Mon Sep 17 00:00:00 2001 From: "David Kaspar [Dee'Kej]" <dkaspar@redhat.com> Date: Mon, 28 Nov 2016 17:48:29 +0100 Subject: [PATCH] Regression of 'rm *' when 'rmstar' is set fixed This regression was introduced by commit: 858a705a79a5389 Signed-off-by: David Kaspar [Dee'Kej] <dkaspar@redhat.com> --- sh.func.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sh.func.c b/sh.func.c index a866076..b0dfbc9 100644 --- a/sh.func.c +++ b/sh.func.c @@ -2734,16 +2734,17 @@ nlsclose(void) int getYN(const char *prompt) { - int doit, c; + int doit; + char c; xprintf("%s", prompt); flush(); - (void) force_read(SHIN, &c, 1); + (void) force_read(SHIN, &c, sizeof(c)); /* * Perhaps we should use the yesexpr from the * actual locale */ doit = (strchr(CGETS(22, 14, "Yy"), c) != NULL); - while (c != '\n' && force_read(SHIN, &c, 1) == 1) + while (c != '\n' && force_read(SHIN, &c, sizeof(c)) == 1) continue; return doit; } -- 2.7.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor