Refactor: remoted: Use getline() instead of fgets()
getline() allocates a buffer large enough to hold the entire input line,
avoiding the need to worry about LINE_MAX (which glibc doesn't enforce
anyway).
Also define a constant for the file name instead of taking an argument.
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>