diff --git a/src/kovid.c b/src/kovid.c index d8a0480..1136297 100644 --- a/src/kovid.c +++ b/src/kovid.c @@ -23,6 +23,7 @@ #include #include #include +#include #include "lkm.h" #include "fs.h" @@ -558,8 +559,9 @@ static ssize_t write_cb(struct file *fptr, const char __user *user, char *newname; pid = (pid_t)simple_strtol(s, NULL, 10); newname = strrchr(buf, ' '); - if (++newname) + if (newname && ++newname && !isdigit(*newname)) { kv_rename_task(pid, newname); + } } } proc_timeout(PRC_RESET);