mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
dasdinfo: Fix false line breaks
Commit61b60baf57("dasdinfo: Fix GCC 7 overflow warning") erroneously introduced line breaks to the UID (-u) output. To be consistent with the extended uid ouput code, keep the newley indroduced line breaks and remove the additional one from the string split above instead. Fixes:61b60baf57("dasdinfo: Fix GCC 7 overflow warning") Signed-off-by: Jan Höppner <hoeppner@linux.vnet.ibm.com> Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
This commit is contained in:
committed by
Michael Holzheu
parent
0382659f4f
commit
e581fa3fea
@@ -716,8 +716,7 @@ int main(int argc, char * argv[])
|
||||
break;
|
||||
}
|
||||
if (srchuid) {
|
||||
srchuid[0] = '\n';
|
||||
srchuid[1] = 0;
|
||||
srchuid[0] = '\0';
|
||||
}
|
||||
if (export) {
|
||||
printf("ID_UID=%s\n", readbuf);
|
||||
|
||||
Reference in New Issue
Block a user