OSDN Git Service

Fix hwclock -u.
authorElliott Hughes <enh@google.com>
Sat, 9 Jan 2016 20:20:50 +0000 (12:20 -0800)
committerRob Landley <rob@landley.net>
Mon, 11 Jan 2016 03:19:48 +0000 (21:19 -0600)
commitc55d30d85f1332f5022132c119ecfa3f2f16f4c5
tree7516ef0fad09b930de963e0db52bfbf251beeb31
parente8943589a8404b96071eb1890d08d3c80941fae8
Fix hwclock -u.

You can't pass a NULL value to setenv(3). The "put things back how they were"
intent of this code is best achieved by calling unsetenv(3) in the NULL case.

(This causes a crash with "hwclock -u" on Android. glibc silently corrupts the
environment instead.)
lib/xwrap.c