From 791d0ecdccaf87b1f4974411c3a3f0a7336fcb59 Mon Sep 17 00:00:00 2001 From: Wyatt Dahlenburg Date: Thu, 23 Jun 2022 16:22:19 -0500 Subject: [PATCH 1/2] Guard attribute was missing on setattr calls --- nfsshell.c | 4 ++++ 1 file changed, 4 insertions(+) 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; From bfa855b67b0e94f17bc0a084c22e1568668c01c9 Mon Sep 17 00:00:00 2001 From: Wyatt Dahlenburg Date: Thu, 23 Jun 2022 16:22:43 -0500 Subject: [PATCH 2/2] Adding Dockerfile to compile old dependencies --- Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Dockerfile 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