dasdinfo: Fix false line breaks

Commit 61b60baf57 ("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:
Jan Höppner
2017-12-05 15:49:17 +01:00
committed by Michael Holzheu
parent 0382659f4f
commit e581fa3fea

View File

@@ -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);