From 69beb787d1be696024c4f276cda35cb88a1fb972 Mon Sep 17 00:00:00 2001 From: Knight Date: Wed, 22 Jun 2016 21:36:50 +0800 Subject: [PATCH] chown: Add entries --- Cargo.toml | 2 ++ Makefile | 2 ++ src/chown/Cargo.toml | 19 +++++++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 src/chown/Cargo.toml diff --git a/Cargo.toml b/Cargo.toml index e17c40bd2..cf0cd9fd9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,6 +7,7 @@ build = "build.rs" [features] unix = [ "chmod", + "chown", "chroot", "du", "groups", @@ -100,6 +101,7 @@ base64 = { optional=true, path="src/base64" } basename = { optional=true, path="src/basename" } cat = { optional=true, path="src/cat" } chmod = { optional=true, path="src/chmod" } +chown = { optional=true, path="src/chown" } chroot = { optional=true, path="src/chroot" } cksum = { optional=true, path="src/cksum" } comm = { optional=true, path="src/comm" } diff --git a/Makefile b/Makefile index a9d32b70f..0e49727f7 100644 --- a/Makefile +++ b/Makefile @@ -99,6 +99,7 @@ PROGS := \ UNIX_PROGS := \ chmod \ + chown \ chroot \ du \ groups \ @@ -135,6 +136,7 @@ TEST_PROGS := \ basename \ cat \ chmod \ + chown \ cksum \ comm \ cp \ diff --git a/src/chown/Cargo.toml b/src/chown/Cargo.toml new file mode 100644 index 000000000..1da09f5f0 --- /dev/null +++ b/src/chown/Cargo.toml @@ -0,0 +1,19 @@ +[package] +name = "chown" +version = "0.0.1" +authors = [] + +[lib] +name = "uu_chown" +path = "chown.rs" + +[dependencies] +getopts = "*" +glob = "*" +libc = "*" +uucore = { path="../uucore" } +clippy = {version = "*", optional = true} + +[[bin]] +name = "chown" +path = "main.rs"