Index: uspace/app/bdsh/cmds/modules/ls/ls.c
===================================================================
--- uspace/app/bdsh/cmds/modules/ls/ls.c	(revision f4f4b95e62a33cdf2a50bf7841b07ccb8ade8dff)
+++ uspace/app/bdsh/cmds/modules/ls/ls.c	(revision 0feb39b9a81f36fb0a3332a083d8edd5a77a6627)
@@ -66,6 +66,6 @@
 /* Prototypes for the ls command, excluding entry points. */
 static unsigned int ls_start(ls_job_t *);
-static bool ls_print(struct dir_elem_t *);
-static bool ls_print_single_column(struct dir_elem_t *);
+static errno_t ls_print(struct dir_elem_t *);
+static errno_t ls_print_single_column(struct dir_elem_t *);
 static int ls_cmp_type_name(const void *, const void *);
 static int ls_cmp_name(const void *, const void *);
@@ -96,5 +96,5 @@
  * @param de		Directory element.
  */
-static bool ls_print(struct dir_elem_t *de)
+static errno_t ls_print(struct dir_elem_t *de)
 {
 	int width = 13;
@@ -110,5 +110,6 @@
 
 			char *rptr;
-			if (cap_format(&cap, &rptr) == EOK) {
+			errno_t rc = cap_format(&cap, &rptr);
+			if (rc == EOK) {
 				char bytes[9], suffix[3];
 				sscanf(rptr, "%s %s", bytes, suffix);
@@ -117,5 +118,5 @@
 				printf("%-40s\t%*s %2s\n", de->name, width - 3, bytes, suffix);
 			} else
-				return false;
+				return rc;
 		}
 	} else if (de->s.is_directory)
@@ -124,8 +125,8 @@
 		printf("%-40s\n", de->name);
 
-	return true;
-}
-
-static bool ls_print_single_column(struct dir_elem_t *de)
+	return EOK;
+}
+
+static errno_t ls_print_single_column(struct dir_elem_t *de)
 {
 	if (de->s.is_file) {
@@ -135,5 +136,5 @@
 	}
 
-	return true;
+	return EOK;
 }
 
@@ -253,5 +254,5 @@
 
 	for (i = 0; i < nbdirs; i++) {
-		if (!ls.printer(&tosort[i])) {
+		if (ls.printer(&tosort[i]) != EOK) {
 			cli_error(CL_ENOMEM, "%s: Out of memory", cmdname);
 			goto out;
@@ -470,5 +471,5 @@
 	switch (scope) {
 	case LS_FILE:
-		if (!ls.printer(&de)) {
+		if (ls.printer(&de) != EOK) {
 			cli_error(CL_ENOMEM, "%s: Out of memory", cmdname);
 			return CMD_FAILURE;
Index: uspace/app/bdsh/cmds/modules/ls/ls.h
===================================================================
--- uspace/app/bdsh/cmds/modules/ls/ls.h	(revision f4f4b95e62a33cdf2a50bf7841b07ccb8ade8dff)
+++ uspace/app/bdsh/cmds/modules/ls/ls.h	(revision 0feb39b9a81f36fb0a3332a083d8edd5a77a6627)
@@ -27,5 +27,5 @@
 	bool exact_size;
 
-	bool (*printer)(struct dir_elem_t *);
+	errno_t (*printer)(struct dir_elem_t *);
 } ls_job_t;
 
