diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..925315d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM ubuntu:xenial-20161114 as build +RUN DEBIAN_FRONTEND=noninteractive apt-get update -y +RUN DEBIAN_FRONTEND=noninteractive apt-get install make gcc libtirpc-dev libncurses-dev libreadline-dev -y +COPY ./ /nfsshell +WORKDIR /nfsshell +RUN make + +FROM ubuntu:xenial-20161114 +COPY --from=build /nfsshell/nfsshell /bin/nfsshell +ENTRYPOINT ["/bin/nfsshell"] \ No newline at end of file diff --git a/nfsshell.c b/nfsshell.c index 5d7d52a..b373adc 100644 --- a/nfsshell.c +++ b/nfsshell.c @@ -1161,6 +1161,8 @@ do_chmod(int argc, char **argv) aargs.new_attributes.atime = (set_atime) { .set_it=FALSE }; aargs.new_attributes.mtime = (set_mtime) { .set_it=FALSE }; + aargs.guard.check = FALSE; + if ((ares = nfs3_setattr_3(&aargs, nfsclient)) == NULL) { clnt_perror(nfsclient, "nfs3_setattr"); return; @@ -1274,6 +1276,8 @@ do_chown(int argc, char **argv) aargs.new_attributes.atime = (set_atime) { .set_it=FALSE }; aargs.new_attributes.mtime = (set_mtime) { .set_it=FALSE }; + aargs.guard.check = FALSE; + if ((ares = nfs3_setattr_3(&aargs, nfsclient)) == NULL) { clnt_perror(nfsclient, "nfs3_setattr"); return;