Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 02c7113d authored by Colin Cross's avatar Colin Cross Committed by Gerrit Code Review
Browse files

Merge "adb: replace utimes() with utime()"

parents 143b9e3d 70467735
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@
#include <limits.h>
#include <sys/types.h>
#include <zipfile/zipfile.h>
#include <utime.h>

#include "sysdeps.h"
#include "adb.h"
@@ -935,8 +936,8 @@ static int remote_build_list(int syncfd, copyinfo **filelist,

static int set_time_and_mode(const char *lpath, unsigned int time, unsigned int mode)
{
    struct timeval times[2] = { {time, 0}, {time, 0} };
    int r1 = utimes(lpath, times);
    struct utimbuf times = { time, time };
    int r1 = utime(lpath, &times);

    /* use umask for permissions */
    mode_t mask=umask(0000);