timedate: do not copy input string before bus_verify_polkit_async()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 15 May 2018 13:53:19 +0000 (22:53 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 15 May 2018 13:53:42 +0000 (22:53 +0900)
commit539a68e0fb719a32560d648df8d4d158afeaaf02
tree25da10b98f2a0685cc7b4e20360ab22eb46c4ab8
parentc650f207218845080d1edd79cd439541fa68ddab
timedate: do not copy input string before bus_verify_polkit_async()

This fixes the commit 2c3def62144c9d689ddda88a866b1e623074eaae which
breaks `timedatectl set-timezone` called by non-privileged user.
src/timedate/timedated.c