]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- fixed setting uid of post snapshot
authorArvin Schnell <aschnell@suse.de>
Thu, 6 Sep 2012 14:07:21 +0000 (16:07 +0200)
committerArvin Schnell <aschnell@suse.de>
Thu, 6 Sep 2012 14:07:21 +0000 (16:07 +0200)
server/Client.cc

index 4d319525c83af2738948067098ed94217e115a32..b847fcc51a389da75203401047221edffc3b0a2c 100644 (file)
@@ -749,7 +749,7 @@ Client::create_post_snapshot(DBus::Connection& conn, DBus::Message& msg)
     Snapshots::iterator snap1 = snapshots.find(pre_num);
 
     Snapshots::iterator snap2 = snapper->createPostSnapshot(description, snap1);
-    snap1->setUid(conn.get_unix_userid(msg));
+    snap2->setUid(conn.get_unix_userid(msg));
     snap2->setCleanup(cleanup);
     snap2->setUserdata(userdata);
     snap2->flushInfo();