summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm/ecore_drm_tty.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2014-10-06 10:07:22 -0400
committerChris Michael <cp.michael@samsung.com>2014-10-06 10:07:22 -0400
commitcfea1e93220231f9676e27c9bf923656916f36d7 (patch)
tree84676f692f32fd80b677907c57caad9d549b5a53 /src/lib/ecore_drm/ecore_drm_tty.c
parentc644155ac6109ec5110cd7e08d940f62ff3f39a0 (diff)
Revert verifying anything passed in to the API.
Revert "ecore_drm: Verifying if name format is /dev/xyz before assigning to tty." This reverts commit 5ebc31908e7ac81a8f6ce0979a40ba7865a5bf48.
Diffstat (limited to 'src/lib/ecore_drm/ecore_drm_tty.c')
-rw-r--r--src/lib/ecore_drm/ecore_drm_tty.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_tty.c b/src/lib/ecore_drm/ecore_drm_tty.c
index c6246985e7..c047494311 100644
--- a/src/lib/ecore_drm/ecore_drm_tty.c
+++ b/src/lib/ecore_drm/ecore_drm_tty.c
@@ -205,13 +205,8 @@ ecore_drm_tty_open(Ecore_Drm_Device *dev, const char *name)
205 else 205 else
206 dev->tty.fd = dup(STDIN_FILENO); 206 dev->tty.fd = dup(STDIN_FILENO);
207 } 207 }
208 else 208 else // FIXME: NB: This should Really check for format of name (/dev/xyz)
209 { 209 snprintf(tty, sizeof(tty), "%s", name);
210 if (strncmp(name,"/dev/", 5))
211 snprintf(tty, sizeof(tty), "/dev/%s",name);
212 else
213 snprintf(tty, sizeof(tty), "%s", name);
214 }
215 210
216 if (dev->tty.fd < 0) 211 if (dev->tty.fd < 0)
217 { 212 {