diff options
author | Mike Mason <ms13sp@gmail.com> | 2007-11-28 15:30:17 +0000 |
---|---|---|
committer | Mike Mason <ms13sp@gmail.com> | 2007-11-28 15:30:17 +0000 |
commit | 8dd8ee0316f52886e0b1f6bc083eb5531ec28dc0 (patch) | |
tree | a5cf9f4aef6b181b9a47d02953668090a8030afb /password-model.lua | |
parent | c4db4cc4492f6becef2e41ce849975dcf8cbdec0 (diff) | |
download | acf-alpine-baselayout-8dd8ee0316f52886e0b1f6bc083eb5531ec28dc0.tar.bz2 acf-alpine-baselayout-8dd8ee0316f52886e0b1f6bc083eb5531ec28dc0.tar.xz |
Changed the split.lua to use fs.lua with the fs.string_to_table function
git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@380 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'password-model.lua')
-rw-r--r-- | password-model.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/password-model.lua b/password-model.lua index 90fa50d..eeabd9c 100644 --- a/password-model.lua +++ b/password-model.lua @@ -1,6 +1,5 @@ -- password model methods module (..., package.seeall) -strsplit = require "split" require "fs" -- no initializer in model - use controller.init for that @@ -8,7 +7,7 @@ require "fs" get = function (self) f = io.open ("/etc/shadow") c = f:read("*l") - temp = strsplit(":", c) + temp = fs.string_to_table(":", c) if temp[2] == "!" then status = "not set" else |