From 8dd8ee0316f52886e0b1f6bc083eb5531ec28dc0 Mon Sep 17 00:00:00 2001 From: Mike Mason Date: Wed, 28 Nov 2007 15:30:17 +0000 Subject: 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 --- password-model.lua | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3