Commit 314c2ef
committed
utils: refactor set_home_env
Use the return value from fgetpwent_r as error value.
Reference:
https://man7.org/linux/man-pages/man3/fgetpwent_r.3.html#RETURN_VALUE
Remove ENOTSUP check as it is not needed since
containers@6ed7bab
Closes: containers#2010
Signed-off-by: Erik Sjölund <erik.sjolund@gmail.com>1 parent 94fda0b commit 314c2ef
2 files changed
+10
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1186 | 1186 | | |
1187 | 1187 | | |
1188 | 1188 | | |
1189 | | - | |
| 1189 | + | |
1190 | 1190 | | |
1191 | 1191 | | |
1192 | 1192 | | |
| |||
3689 | 3689 | | |
3690 | 3690 | | |
3691 | 3691 | | |
3692 | | - | |
| 3692 | + | |
3693 | 3693 | | |
3694 | 3694 | | |
3695 | 3695 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1447 | 1447 | | |
1448 | 1448 | | |
1449 | 1449 | | |
1450 | | - | |
1451 | 1450 | | |
1452 | 1451 | | |
1453 | 1452 | | |
| |||
1457 | 1456 | | |
1458 | 1457 | | |
1459 | 1458 | | |
1460 | | - | |
| 1459 | + | |
1461 | 1460 | | |
1462 | 1461 | | |
1463 | 1462 | | |
1464 | 1463 | | |
1465 | 1464 | | |
1466 | | - | |
| 1465 | + | |
1467 | 1466 | | |
1468 | 1467 | | |
1469 | | - | |
1470 | | - | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
1471 | 1474 | | |
1472 | 1475 | | |
1473 | 1476 | | |
| |||
1480 | 1483 | | |
1481 | 1484 | | |
1482 | 1485 | | |
1483 | | - | |
1484 | | - | |
1485 | | - | |
1486 | | - | |
1487 | 1486 | | |
1488 | 1487 | | |
1489 | 1488 | | |
| |||
0 commit comments