Index: uspace/lib/c/generic/io/io.c
===================================================================
--- uspace/lib/c/generic/io/io.c	(revision ebcb05a569ef3a706553a41bd6a44277cc63277f)
+++ uspace/lib/c/generic/io/io.c	(revision aa2ea13ab01522f98268028b92e4eb434a507e4a)
@@ -173,4 +173,5 @@
 		}
 		*flags = (O_APPEND | O_CREAT) | (plus ? O_RDWR : O_WRONLY);
+		break;
 	default:
 		errno = EINVAL;
