Trivial patch actually attached...

On Thu, Oct 20, 2016 at 8:15 PM, Josh Gao <jm...@google.com> wrote:

> Trivial patch attached.
>
From 232617a915f54e0d8d7fc2ce13e2d75e6ecd958d Mon Sep 17 00:00:00 2001
From: Josh Gao <jm...@google.com>
Date: Thu, 20 Oct 2016 20:10:18 -0700
Subject: [PATCH] Make chmod work on . and ..
---
 toys/posix/chmod.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/toys/posix/chmod.c b/toys/posix/chmod.c
index 4292439..288516b 100644
--- a/toys/posix/chmod.c
+++ b/toys/posix/chmod.c
@@ -43,8 +43,6 @@ static int do_chmod(struct dirtree *try)
 {
   mode_t mode;

-  if (!dirtree_notdotdot(try)) return 0;
-
   mode = string_to_mode(TT.mode, try->st.st_mode);
   if (toys.optflags & FLAG_v) {
     char *s = dirtree_path(try, 0);
--
2.8.0.rc3.226.g39d4020

_______________________________________________
Toybox mailing list
Toybox@lists.landley.net
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to